Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 168
  • Last Modified:

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
0
mullproperty
Asked:
mullproperty
2 Solutions
 
David H.H.LeeCommented:
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
 
ITGaWDCommented:
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

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now