How do I place text beside a block element like H1?

Hello

How do I add text right next to a H1 element? When I try, the text appears below the H1 element as per attachement...

Any help apreciated...

Thanks

Paul
<h2>Company  Data</h2>help

Open in new window

Capture.JPG
mullpropertyAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
David H.H.LeeConnect With a Mentor Commented:
Hi mullproperty,
Try this:
<h2 style="float: left">Company  Data</h2>help
0
 
mullpropertyAuthor Commented:
hey x com, thanks! thats got it all on same line...but how do i now get all elements on the baseline?
Capture.JPG
0
 
ITGaWDConnect With a Mentor Commented:
try display: inline
with
<div style="display: inline"><h2 style="float: left">Company  Data</h2>help</div>

Or seperatly if it doesn't work.
0
 
David H.H.LeeCommented:
Hi mullproperty,
>>..how do i now get all elements on the baseline?
Probably you need to override the "help"'s CSS under <h> tag instead of resides outside of "Company Data".
eg:
<h2>Company  Data <font style="font-size:16px">help</font></h2>
0
 
GaryCommented:
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.