Hi!!
This issue I 'm experiencing is probably not a MenuAdapter problem, maybe more a browser problem. But, since it's been happening with my menu control I decided to look here for some ideas:
The scenario is:
I test my application in 3 different platforms: IE 6, Firefox 1.5 and IE 7 RC1.
I have a navigation menu at the top, which is using the CSS MenuAdapter. It is an Horizontal menu with 5 top level items.
You can look at it at www.vedere-group.com
If you use Firefox, you will see my "intended" menu. This is: each top level item doesn't have a predefined width, so they align themselves according with the text inside. Here is the CSS chunk:
.MainMenu .AspNet-Menu-Horizontal ul.AspNet-Menu li { padding: 3px 40px 4px 10px; color: inherit; background-color: #BEBEBE;}If you use IE6 you will see a different alignment (kinda ugly), because I had to set the width of each item, otherwise I'll get a "vertical" menu (this means: the li items are not positioning right to each other, but below). For this, I use a conditional CSS:
.MainMenu .AspNet-Menu-Horizontal ul.AspNet-Menu li {width: 111px ;padding: 3px 10px 4px 10px;; color: inherit; background-color: #BEBEBE;}
And, if you use IE7 RC1, you'll get the proper "firefox" alignment, but the submenus get completely misaligned at the right of the top level item.
Here is the sub menu box CSS:
.MainMenu .AspNet-Menu-Horizontal ul.AspNet-Menu li ul {width: 160px;margin: 4px 0 0 -5px;border: solid 1px #BEBEBE;}
If i change the margins to make the sublevel item aligned in IE7 RC1 (like: .MainMenu .AspNet-Menu-Horizontal ul.AspNet-Menu li ul {width: 160px;margin: 18px 0 0 -50px;border: solid 1px #BEBEBE;} ), I screw up in IE6 and Firefox.!!
I can give more details or even try to upload sample pages, but I'm not sure what's the issue here, and if its a browser problem only. If anybody has some idea it would be much appreciated!
Thanks,
Juan
Juan Barrera
MCTS
Please remember to click "Mark as Answer" on this post if it helped you.