Not sure if this is the right place ... I am new to Dreamweaver and CSS but I have created a spry menu (horizontal) and everything looks good in all browsers except IE, the main container which is green is out of alignment with the menu bar at the top. I have been fiddling with this for weeks. Any help would be much appreciated. The link is as follow:
www.whiterockchristiansciencechurch.com/bctestmay12/
thanks.
L*
PS please reply in language that a rookie can understand.
Because each browser has its own default style rules, it is very hard to have a menubar with automatic width, containing menu items with automatic width to remain exactly the same in each browser. Look at your site in IE9 (menu bar too wide), IE8 (menu bar correct width) and IE7 (menu bar too narrow.
One way to help, but not guaranteed to help, is to use CSS reset as per http://meyerweb.com/eric/tools/css/reset/
Another way is to set a width to each menu item individually. You can do this inline as per
<li style="width: 250px;"><a href="#">Item 2</a></li>
You could also use images that use their own widths.
Incidently, it is better not to use an absolute positioned div in your layout.
Gramps
Hi Gramps
Thank you … I took a look at the web address you sent me, but couldn’t figure out what I was supposed to do with it! Then I tried setting the individual widths of the menu items and this has improved the appearance in IE to the point where I can live with it. What puzzles me though is why, if the cumulative total of the menu items measure 946 px and the ‘main‘ div also measures 946, they don’t exactly match up exactly lengthwise.
Also your comment about not using ‘absolute’ positioned divs … I have been learning Dreamweaver from the Adobe manual and it recommends that you use absolute positioning for the ‘main’ div and so I thought everything else within the container (other than the container itself which I have set to relative) should be absolute. Are you saying that I should not use absolute for the main div or are you just referring to the menu div? If I don’t use absolute what should I use?
Thanks so much for your assistance, most appreciated.
North America
Europe, Middle East and Africa
Asia Pacific