I am having some trouble getting a div to wrap tightly around its contents in ie 6. This can be seen in the menu for dev.epro.com, where in new browsers only the menu items have a background, whereas in ie 6 the menu background takes up the entire width of the page. The main problem with this is depending on who you log in as, you can get multiple menus, which should stack up on the same line but in ie 6 will create the new menu on a separate line. Does anyone have any suggestions for how to fix this?

1 answer

danwellman 5600

try setting the links to display:inline-block instead of block

Answered over 7 years ago by danwellman