"Matt Stanley" <ma**@lebois.com> wrote in message
news:10*************@corp.supernews.com...
I am trying to build a page that scales to fit the browser window
regardless of size or resolution. The navigation on the top of the page is framed in
dark red/brown using CSS with a background color specified in a custom
class tag.
I only want those cells that are using this custom class to be 1 pixel
wide. In the code I did not specify the <td> width but instead inserted a
single-pixel, transparent GIF and specified the dimensions of that image
as 1 pixel wide by 10 pixels tall. For some unknown reason, however, the
cells that act as dividers between the navigation boxes are 4 pixels wide.
Here's the URL to see what I mean:
http://myweb.cableone.net/mstanley/w...lbr/index.html
I know CSS would be a cleaner, more efficient way to position the elements
and control layout, but unfortunately I don't have the luxury of time to
master those concepts before the project is due. For now I'm going to have
to settle with using tables.
How can I get this to work as intended? Please advise.
All the cells in a column are the same width. In the same column as these
graphics, you have cells whose contents are which is wider than one
pixel. Therefore, all the cells in that column are wider than one pixel.
There's nothing you can do about it as long as those non-breaking spaces are
in that column.
What's not clear is why, even without restructuring your page to use CSS for
presentation, you felt that the nav bar should be but a few rows in a huge,
complicated table that encompasses the entire page. There's no reason,
especially given the straightforward top-to-bottom layout of your page, why
the banner, the nav bar, the content, and the footer shouldn't be
constructed as mutually independent blocks.
There's no reason to have seven consecutive rows of blank space. Even given
that you're going to use the outdated practice of using table rows for
vertical spacing, you could have a single row with its height set. You've
got some study ahead of you in efficient page layout techniques.