Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

stop h1 tag going onto next line 1

Status
Not open for further replies.

derwent

Programmer
May 5, 2004
428
GB
Is there a css command that will stop my h1 tag starting on the next line?

I have an image to the left of it and would like to begin the h1 tag to the right of the image, but it is moving to the next line at the moment!

Thanks
 
Code:
<style type="text/css">
h1.inline {
 display: inline;
}
</style>
This should do it. Haven't tested it though.
 
thanks mate, worked a treat. Tried everything in google to get that result!
 
alternatively, you could float the image to the left:
Code:
<img src="my_pic.jpg" width="100" height="30" style="float: left;" />

<marc> i wonder what will happen if i press this...[ul][li]please tell us if our suggestion has helped[/li][li]need some help? faq581-3339[/li][/ul]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top