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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using <p class> creates <p> break

Status
Not open for further replies.

evemarie

Programmer
Oct 25, 2002
7
US
Hi there,
I am somewhat new to using style sheets and I have a question.

I have two P classes, "heading" and "text." I want the "heading" text to be directly above the "text" text. Example:

HEADING
text text text

However, when I write the code:

<p class=heading>HEADING</p class=heading>
<p class=text>text text text</p class=text>

I end up with:

HEADING

text text text

Any suggestions? Am I mis-using the tags?

THANKS A MILLION!!!

 
<span class=heading>Heading</span><br>
<span class=text>text text text</span>


You do not need to close tags with extra junk:
</p class=heading>

Using </p> is fine.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top