Alternatives illégales <br> ou <p> dans <li> balises sur un hover?

Quelqu'un a une suggestion pour la création de l'alinéa ligne de type espaces à l'intérieur d'un <li> balise qui comprend un planait pop-up pseudo-classe?

J'ai un <span> qui s'affiche sur l' a:hover et je veux que le texte qui apparaît être divisée en 2 paragraphes. Il fonctionne avec <br> dans FF, mais je veux faire la bonne chose (maintenant que j'ai découvert, c'est mal!)...

html:

<div id="rightlist">
  <ul>
      <li><a href="">List item
          <span>
             words words words that are "paragraph" 1 of List item
             <br><br>
             different words that make up "paragraph" 2 of List item
          </span></a></li>

css:

#rightlist {
margin-top: 10px; margin-right: 5px; width: 387px ; height: 239px ;
background-color: #7EBB11 ;
display: table-cell; 
z-index: 100 ;
    float: right ;
}

#rightlist ul {
  text-align: left;
margin: 0;
   margin-top: 6px;
font-family: sans-serif;
font-size: 20px ;
color: black ;
}

#rightlist a 
{
    display: table-cell;
text-decoration: none; color: black; 
background: #7EBB11 ; 
}

/*appearance of the <a> item (but before the <span> tag) on hover*/
#rightlist a:hover {
color: white;
}

/*appearance of the spanned content within <a></a> tags when not hovered */
/* %%%%% important - keep position:absolute in this div %%%%% */
#rightlist a span {
display: none;
position: absolute ;
margin-left: -412px;
top: -10px; left: 10px; padding: 10px ;
z-index: 100;
width: 380px; height: 222px; 
color: white;  background-color: #7EBB11;
font: 0.75em Verdana, sans-serif; font-size: 13px ; color: black;
text-align: left;
}



/*appearance of spanned content within <a> tags when hovered*/
#rightlist a:hover span {
display: table-cell ;
}
Ce qui vous fait penser que ces balises sont illégales à l'intérieur d'un élément de la liste?
Je suppose que le fait que les <ul> est stricte à ce sujet de descendants directs (doit être <li>s seulement) suggèrent que les mêmes restrictions s'appliquent à <li>. Ils n'en ont pas.

OriginalL'auteur | 2009-01-09