Solved

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

Posted on 2009-07-01
6
156 Views
Last Modified: 2013-07-30
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
Comment
Question by:mullproperty
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 29

Accepted Solution

by:
David H.H.Lee earned 250 total points
ID: 24752895
Hi mullproperty,
Try this:
<h2 style="float: left">Company  Data</h2>help
0
 

Author Comment

by:mullproperty
ID: 24752908
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
 
LVL 5

Assisted Solution

by:ITGaWD
ITGaWD earned 250 total points
ID: 24758633
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
 
LVL 29

Expert Comment

by:David H.H.Lee
ID: 24759923
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
 
LVL 58

Expert Comment

by:Gary
ID: 39366303
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
CSS style formatting? 2 62
How to delete "dots" above Bootstrap 3 navbar 4 128
Importing website from Wordpress into updated theme 3 35
How does this modal work? 3 34
CSS is a visual language used to classify objects and define rules about how they should be displayed. CSS skills aren’t restricted to developers anymore, there is a big benefit to having a basic understanding of the language, regardless of your occ…
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
In this Micro Tutorial viewers will learn how to create navigation buttons that change on rollover, using CSS (Continuation of the CSS Image Sprite tutorial) Create a parent ID for all the list items       - Specify position: absolute and display: block…
In this tutorial viewers will learn how to style different bullet points for unordered lists in CSS. Begin with a normal unordered list; the default bullet point is a solid circle: In the CSS, create a defined class of unordered list by typing "ul.S…

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question