July 10, 201016 yr What width dimensions do I need to allow my header to span from one side of the browser to the other? I've created a header of 1024px wide and when opening it in a browser its got a lot of space either side. What am I doing wrong? Thanks
July 10, 201016 yr I've created a header of 1024px wide and when opening it in a browser its got a lot of space either side. You must be using a viewport resolution over 1024*768px to see space each side of the header. Try sizing the header div as width: 100%; which will allow it to fill the width of any viewport. An image with a fixed width inside the 100% wide header will either fit, or show space one or both sides or get cut off depending on whether the resolution is the same or more or less than the image width. Browser scrollbars vary in width between about 17px and 20px (and viewers can alter the browser default width) but a width of 100% should fill whatever is available. If designing a fixed width page, choose the resolution that you wish to design for, (say 1024*768) and create the page to about 20px less width.
July 12, 201016 yr You don't want to size the header by pixels. What about people with different screen resolutions?
Create an account or sign in to comment