PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Autres forums > Forum Programmation & Conception > comp.info.authoring.CSS > IE7 Display:BLock and line breaks
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
IE7 Display:BLock and line breaks

Réponse
 
LinkBack Outils de la discussion
Vieux 27/03/2008, 19h38   #1 (permalink)
obaqueiro
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut IE7 Display:BLock and line breaks

Hello, if you look at this page:

http://playground.emanuelblagonic.co...op-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.
  Réponse avec citation
Vieux 27/03/2008, 23h14   #2 (permalink)
Bergamot
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: IE7 Display:BLock and line breaks

obaqueiro wrote:
>
> http://playground.emanuelblagonic.co...op-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.

--
Berg
  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 03h55.


Édité par : vBulletin® version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,07833 seconds with 10 queries