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
using styles with paragraph tag
Old 09-10-2007, 07:06 PM using styles with paragraph tag
AirAndAqua.com's Avatar
Experienced Talker

Posts: 35
Name: James
Trades: 0
hey everyone,
I am having trouble figuring out how to use different styles within the same P tag...

say I want to have something like

FREE SHIPPING - Check it out!

How the heck would I use two different styles in the same paragraph?... usually I end up with something like this

Code:
<p class="Maroon_3">FREE SHIPPING</p>
<p class="Red_2">check it out!</p>
which obviously it will not come out looking how I want it too...

I am really having trouble figuring this out!
__________________

Please login or register to view this content. Registration is FREE
(Air and Water Purification Products)

Please login or register to view this content. Registration is FREE
(Minnesota Exteriors Storm Damage insurance Claims)
Personal Page -
Please login or register to view this content. Registration is FREE
AirAndAqua.com is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 09-11-2007, 12:01 AM Re: using styles with paragraph tag
joder's Avatar
Flipotron

Posts: 6,442
Name: James
Location: In the ocean.
Trades: 0
HTML Code:
<p class="Maroon_3">FREE SHIPPING <span class="Red_2">check it out!</span></p>
joder is offline
Reply With Quote
View Public Profile
 
Old 09-11-2007, 12:08 AM Re: using styles with paragraph tag
vangogh's Avatar
Post Impressionist

Latest Blog Post:
Why Responsive Design?
Posts: 10,815
Name: Steven Bradley
Location: Boulder, Colorado
Trades: 0
What James said. You could also wrap a span around FREE SHIPPING and not specifically style the paragraph or style the paragraph for any other words you might have.

<span>s display inline by default which makes them useful for styling portions of text within a paragraph.
__________________
l Search Engine Friendly Web Design |
Please login or register to view this content. Registration is FREE

l Tips On Marketing, SEO, Design, and Development |
Please login or register to view this content. Registration is FREE

l
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
vangogh is offline
Reply With Quote
View Public Profile Visit vangogh's homepage!
 
Old 09-11-2007, 01:25 PM Re: using styles with paragraph tag
AirAndAqua.com's Avatar
Experienced Talker

Posts: 35
Name: James
Trades: 0
**** I see, so SPAN is kind of like the new FONT? Will play around with it a bit, thanks for the help guys!
__________________

Please login or register to view this content. Registration is FREE
(Air and Water Purification Products)

Please login or register to view this content. Registration is FREE
(Minnesota Exteriors Storm Damage insurance Claims)
Personal Page -
Please login or register to view this content. Registration is FREE
AirAndAqua.com is offline
Reply With Quote
View Public Profile
 
Old 09-11-2007, 03:09 PM Re: using styles with paragraph tag
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
Quote:
so SPAN is kind of like the new FONT?
Not at all, but it can work LIKE a <font> tag in this instance.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to using styles with paragraph tag
 

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.48927 seconds with 12 queries