Jump to content

preventing auto line breaks


Recommended Posts

Hey guy im having a issue with Css adding in a line break where I dont want it to be at. Im wanting to style "Homes" seperate from the rest. but if i add a div on each side of it it will put a line break shoving "- This is some text" on the next line. How do I prevent this or is there another way i should be styling one word.

<li><div class="subject">Homes</div> - This is some text</li>

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...