Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / HTML, CSS, Scripts / CSS / March 2008



Tip: Looking for answers? Try searching our database.

IE7 Display:BLock and line breaks

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
obaqueiro - 27 Mar 2008 19:38 GMT
Hello, if you look at this page:

http://playground.emanuelblagonic.com/creating-nested-drop-down-menus/

Showing a menu and sub-menu web page  in Firefox or Opera, the
submenues are shown vertically. This presumably because of the
display:block style which according to the css page  (
http://www.w3schools.com/css/pr_class_display.asp ) :

"The element will be displayed as a block-level element, with a line
break before and after the element"

However, when you see the menu page with IE7, the submenus are
displayed incorrectly (horizontally). Is there a way to make it show
correctly?? I have tried with display:list-item and others but can not
achieve the desired effect (make it display vertically, like in
Firefox and Opera and presumably others).

Thank you,

Omar.
Bergamot - 27 Mar 2008 23:14 GMT
> http://playground.emanuelblagonic.com/creating-nested-drop-down-menus/
>
> Showing a menu and sub-menu web page  in Firefox or Opera, the
> submenues are shown vertically. This presumably because of the
> display:block style which according to the css page  (
> http://www.w3schools.com/css/pr_class_display.asp )

FYI, w3schools is not related to W3C in any way, and is no authority on
HTML or CSS. A better tutorial is htmldog.com

> However, when you see the menu page with IE7, the submenus are
> displayed incorrectly (horizontally).

You have in your HTML:

<!--[if IE]>
<style type="text/css">
#menu li {
    position:static;
}
</style>
<![endif]-->

What did you expect to happen? When I deleted this the submenus showed
vertically in IE7. There's just a z-index issue to resolve then, and
maybe something else for IE6.

Signature

Berg

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.