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


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...


<h2>Company  Data</h2>help

Open in new window

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

David H.H.LeeCommented:
Hi mullproperty,
Try this:
<h2 style="float: left">Company  Data</h2>help

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
mullpropertyAuthor Commented:
hey x com, thanks! thats got it all on same line...but how do i now get all elements on the baseline?
try display: inline
<div style="display: inline"><h2 style="float: left">Company  Data</h2>help</div>

Or seperatly if it doesn't work.
David H.H.LeeCommented:
Hi mullproperty,
>> 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".
<h2>Company  Data <font style="font-size:16px">help</font></h2>
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.