В этом суть этого поста, Ким. Вы не можете помещать элементы уровня блока (div, p, ul, ol и т. Д.) Внутри таких элементов, как a, span и т. Д. Это противоречит спецификациям.

ли у кого-нибудь предложение по созданию пробелов типа абзаца внутри<li> тег, который включает всплывающий псевдокласс?

у меня есть<span> это всплывает наa:hover и я хочу, чтобы всплывающий текст был разбит на 2 абзаца. Работает с<br> в FF, но я хочу сделать правильную вещь (теперь, когда я обнаружил, что это неправильно!) ...

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 ;
}

Ответы на вопрос(5)

Ваш ответ на вопрос