Shadowing Posted March 17, 2012 Share Posted March 17, 2012 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 More sharing options...
Shadowing Posted March 17, 2012 Author Share Posted March 17, 2012 ahh I figured it out, just need to add display: inline; Link to comment Share on other sites More sharing options...
dsonesuk Posted March 17, 2012 Share Posted March 17, 2012 or just use span element. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.