Here’s my code:
Your rating: <div>4</div>
It looks like:
Your rating:
4
How can I make a div not make a newline before it?
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.
or
It really depends on how you want to use the div container. It might even be more practical (for the latter example) to use a span if you do not want a block element.