horizontal CSS menus

liunx

Guest
I have a horizontal menu created by using a <ul> and CSS to float the <li>'s left and give them a background color and a border so that they look like image buttons. My problem is trying to get IE and NS to display the list as a set length. It seems that IE places the borders on the inside of the <li> and NS places the borders on the outside, making the NS menu wider than the IE menu. When this menu is butted up against a fixed width header image I can't get NS and IE to BOTH fit the menu to the width of the 800px image.did you try using percentages?As IncaWarrior said, try putting percentages as the widths of the LI's -- then give the UL a specific pixel-width. Maybe that will help it become more flexible.Ok, I put an outer div with a set width of 800 and that made IE and NS both set to the same width. I don't know why it wouldn't do it when I had a width of 800 set on the navbar itself (a sub div of the header div). The only problem I have now is that I swap the background and text colors on :hover and there is a space to the right of the last 'button' that doesn't change. I'll just have to live with that becase there are 6 buttons and 800 is not divisible by 6. Oh well.
Thanks for the reply.Hm... can you post some code as an example?This problem is on the same page as my other post.
The page is for a client and has proprietary code.
I'll see if I can get a chance to recreate both of the problems in a sample page this weekend.Ah, okay.Can you post just the html for it?
 
Back
Top