css - Is it possible to put a list inside a span tag? -
css - Is it possible to put a list inside a span tag? -
i'm aware <span> tag inline element while <li> block element. however, have tooltip uses <span> tag , we'd create text within tooltip list. however, putting <ul><li> within span doesn't work in browsers (and it's invalid).
this html code:
<a class='tooltip'>text<span>text want become list</span></a> is there possible work around?
try this. chances if want set block element within inline element, want them both block elements:
<a class='tooltip' style="display: block;">text <div> <ul> <li>item 1</li> <li>item 2</li> </ul> </div> </a> or tooltips:
a.tooltip{ display: block; } css list tooltip
Comments
Post a Comment