Mark and two Cats Posted April 10, 2013 Share Posted April 10, 2013 How can I include text after the words "Underlined heading" without a line break as happens to the word "TEST":--------------------------------------------<!DOCTYPE html><html><head><style>.underline{text-decoration:underline;}</style></head><body><h1 class="underline">Underlined heading</h1><h1>TEST</h1></body></html>--------------------------------------------What is causing the line break? It happens with other attribues such as color, etc. Thanks! Link to comment Share on other sites More sharing options...
fikiwan Posted April 10, 2013 Share Posted April 10, 2013 .underline{text-decoration:underline;float:left; /* maybe u should add this */} Link to comment Share on other sites More sharing options...
jeffman Posted April 10, 2013 Share Posted April 10, 2013 This is what spans were created for: <h1><span class="underline">Underlined heading</span> TEST</h1> Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now