Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
Applying a style to a word in a paragraph?
Old 12-19-2007, 07:37 AM Applying a style to a word in a paragraph?
Ultra Talker

Posts: 316
Trades: 0
This must be simple to do but escapes me at the moment.

I want to apply a CSS style to a few words in a paragraph.

My first thoughts is to do it like this:

HTML Code:
<p>technologies used: <p class="websites-description">html + css + php</p></p>
as I want to apply it to the words html + css + php but this puts them on a separate line.

What is the best way to do it?

Thanks
Joe3000 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 12-19-2007, 10:50 AM Re: Applying a style to a word in a paragraph?
Ultra Talker

Posts: 316
Trades: 0
<SPAN CLASS="underline">underline a bit here</SPAN>
Joe3000 is offline
Reply With Quote
View Public Profile
 
Old 12-19-2007, 11:34 AM Re: Applying a style to a word in a paragraph?
tripy's Avatar
Do not try this at home!

Posts: 3,621
Name: Thierry
Location: I'm the uber Spaminator !
Trades: 0
<p> is a block element (like <br>, <div>, <ul>, <li>, <table>, <h[1|6]>), thus, it adds a carriage return on the element flow.
<span> is an inline element (like <a>) and it won't add that carriage return.
__________________
Only a biker knows why a dog sticks his head out the window.
tripy is offline
Reply With Quote
View Public Profile Visit tripy's homepage!
 
Old 12-19-2007, 11:36 AM Re: Applying a style to a word in a paragraph?
Ultra Talker

Posts: 316
Trades: 0
Thanks.

I knew it was something simple I had forgot.

Joe3000 is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Applying a style to a word in a paragraph?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.20065 seconds with 12 queries