css - Make ui-icon appear on same line as other text within <li> -


i'm bad css, , i'm trying ui-icon on same line text in li.

<ul>     <li class="ui-state-default">         <span>hello</span>         <span class="ui-icon ui-icon-close"></span>     </li> </ul> 

normally text doesn't within li, think it's ui-icon css, couldn't find causing it.

further question comment above, i've found in jquery-ui css, assuming that's you're using:

/* states , images */ .ui-icon { display: block; text-indent: -99999px; overflow: hidden; background-repeat: no-repeat; } 

changing (or overriding) display: block using display: inline-block should allow icon appear on same line


Comments

Popular posts from this blog

php - What is the difference between $_SERVER['PATH_INFO'] and $_SERVER['ORIG_PATH_INFO']? -

fortran - Function return type mismatch -

queue - mq_receive: message too long -