Hello I have a webpage with a width of 960 px.
I have a menu of 7 items with the contents set to auto so each element is a different width according to the text within.
It is in a <div> container of the same width.
Is there any way to make the menubar fill out to the full width pf the page.
I have tried altering the width tags in both the ul.MenBarHorizontal and ul.MenuBarHorizontal li tage to no avial.
Leaving it a bit off center is not too bad but causes rendering problems in Firefox and of course IE.
Any help is greatly appreciated.
Mac OSX 10.6.8, DW 6.
Thanks.
Thanks for your reply. I tried changing the padding and got quite close to filling uot the 960 pixels. However, each browser rendered the space to the right differently. In the end I just left it off center to the left, deleted the height value for my menubar div tag and floated it to the left. That fixed the render bug in the other browsers.
I have noticed some other sites with variable box widths do this as well.
I'm guessing the only way to do this would be to manually set the width for each cell so that they would add up to 960 including all paddings and margins. Would I have to difine a new rule for each box? Is this possible?
Thanks for any help.
Thanks. Worked great. I was also able to use the class to change each submenu as well.
I was unable to define ul.MenuBarHorizontal li.home as a valid class in DW. I created a class Just called .home and DW accepted it but made a complete mess of the code. Learned my lesson and did everthing in code. Just learning all this and I find a lot of stuff easier to do in code than with DW tools.
Just a few questions:
Is ul.MenuBarHorizontal li.home an invalid class name that might cause problems when the site goes up?
Should it just be .home?
Should I avoid capitals and spaces for class names?
Thanks for all your help.
Is ul.MenuBarHorizontal li.home an invalid class name that might cause problems when the site goes up?
The class name is home (used in the markup as class="home"), the selector is ul.MenuBarHorizontal li.home (used in the style sheet). The selector can take different levels of specificity such as li.home or just .home
Should it just be .home?
See above
Should I avoid capitals and spaces for class names?
Basically, a name must begin with an underscore (_), a dash (-), or a letter(a–Z), followed by any number of dashes, underscores, letters, or numbers and the name must be at least 2 characters long; no spaces.
Gramps,
lost the first match against DK ![]()
North America
Europe, Middle East and Africa
Asia Pacific