If you look at this jsFiddle example:
http://jsfiddle.net/jrXwf/1/
You will see the UL tag displaying a star rating, with text below it on the next line.
Is there any way to get everything on one line?
Thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
http://jsfiddle.net/jrXwf/5/
Add
display: inline-blockto your unordered list (or any other element that you want to behave that way). You could also float the element, but inline-block probably best represents what you want to accomplish with a minimum amount of hassle. You want to display the element inline, and you want it to have a display box which behaves like a block element (thusinline-blockversusinline).Your overall markup structure could/should be modified. As others have pointed out, nesting a
SPANinsideULis not legal. You also have a fairly complex structure that could possibly be simplified to use fewer elements.