Troutnut
12-20-2004, 07:28 PM
I'm trying to create a header bar with some navigational links.
The basic idea is that I have a little banner image about 400 pixels wide on the left. To the right of it, I have 5 navigational links listed horizontally. I want them to be evenly spaced across the rest of the page, regardless of its width. I could do this with percentages if I had them in a parent element equal to the width of the page minus the width of the image to the left.
So basically, I know this isn't actual CSS syntax, but I'm looking for the functional equivalent of saying: #linkContainer{width:100%-400px;}
Anybody know a good way to do something like this?
This would be easy with a table, but I'm trying to stick to CSS for layout and tables only for tabular data.
The basic idea is that I have a little banner image about 400 pixels wide on the left. To the right of it, I have 5 navigational links listed horizontally. I want them to be evenly spaced across the rest of the page, regardless of its width. I could do this with percentages if I had them in a parent element equal to the width of the page minus the width of the image to the left.
So basically, I know this isn't actual CSS syntax, but I'm looking for the functional equivalent of saying: #linkContainer{width:100%-400px;}
Anybody know a good way to do something like this?
This would be easy with a table, but I'm trying to stick to CSS for layout and tables only for tabular data.