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!

multiple font styles in one sentence using css

Status
Not open for further replies.

InternWS

Programmer
Dec 3, 2002
2
US
I wish to format the first 3 or 4 words of a paragraph to appear a bit larger, bold and red, then the remaining text to appear 'normal'. I applied a class to a css formatted <h4> tag that eliminates the margins and the same class to the <p> tag. The results are close to what I want but how do I avoid the forced line break and carriage return of the <p> tag?
 
yea just use a
Code:
<span>
tag. ...ie:
Code:
<span id='big'>big first words</span> rest of stuff

just apply that style to the span tag...
hope it helps
&quot;Those who dare to fail miserably can achieve greatly.&quot; - Robert F. Kennedy
So true..
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top