Results 1 to 2 of 2

Thread: Header (div) picture or graphic question!

  1. #1
    shepme is offline New Member: Posts Will Be Moderated
    Join Date
    Jun 2011
    Posts
    1

    Header (div) picture or graphic question!

    Hello:
    I have been studying HTML/CSS (web-design) for the past year. I have learned allot in that year, however there is one issue that I still have not found the answer to.
    I create a div called header and set the margins to extend the entire screen. If I then view that "box" in a browser and keep hitting ctrl-"-' the box shrinks accordingly. This is where I am stumped. If I use html and tell the computer to put an image or a graphic that I have created inside of that box then shrink it as mentioned above (or change the screen resolution), the box shrinks accordingly but the picture or graphic starts to shrink much smaller that the box that it is in. If I enlarge the screen the picture or graphic will start to spill outside of the box. Most web-sites that have a header with a picture or graphic inside of the header ebb and flow along with the size of the box. Can someone please advise how this is done. I would truly appreciate any assistance.

  2. #2
    Join Date
    Feb 2006
    Location
    Salisbury UK
    Posts
    4,332
    Give us the page url if it's online, or show us the code including any CSS file code.

    Did you size the images in %? If you did, the browser may be reducing the size of the page by a certain % and then reducing the image by the same % again.

    It doesn't happen when I tested one of my web pages because the images are not resized with a style, they just show the size that they were made with and shrink in the same proportaion as the whole page.
    Code downloaded to my PC will be deleted in due course.
    WIN7; IE9, Firefox, Opera, Chrome and Safari for Windows; screen resolution usually 1366*768.
    Also IE6 on W98 with 800*600 and IE8 on Vista 1440*900.

Similar Threads

  1. Add text link in header div
    By Cued4 in forum Web Design, HTML Reference and CSS
    Replies: 1
    Last Post: 18 Dec 2010, 02:59 AM
  2. A most basic question re: linking a graphic in Dreamweaver to a site
    By Motley in forum Web Design, HTML Reference and CSS
    Replies: 1
    Last Post: 17 Feb 2008, 01:17 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •