| 1. |
Solve : Table stretching in different browsers? |
|
Answer» Don't believe this is overly complicated but I'm having a lot of trouble fixing it. As you can see (with firefox and in picture included) on the right the TD's stretchI presume TD means the HTML tag for a table cell, or , right? Actually, the table cells on the right side of the page do not "stretch". What's causing the white space to the right is simply the fact that you have a fixed width page. So, when viewed in a browser window that's wider than your fixed-width page, you're going to see white space to right. Apparently, you've designed the page so that it covers the whole screen width on your computer when viewing it with Safari. But, you have FAILED to recognize that visitors to your site will have a wide RANGE of screen resolutions and different monitor sizes. Here's what I see on a 19 inch monitor set at 1680 x 1050 resolution, using Internet Explorer 8: And, of course, the same amount of white space appears on the right if I view it in Firefox, on the same monitor. The white background in the space to the right is simply due to the fact that you have set white as page background. Until you learn CSS and more advanced techniqes for controlling page layout, I sugggest you center the page and, if you do not want that empty space to the right, and to the left if the page is centered, then choose a color other than white or an image as page background. To center a page which uses tables for layout, such as yours, you can put the entire page inside another table and then center that table. An example of a fixed width page where one background color appears across the entire span of the page: http://www.pigeonroostfarm.com/. An example where the overall page background and the background in the centered page body are different: http://hosanna-lutheran.org/. |
|