Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 08-18-2007, 10:02 AM   #1
Young
Bland for life
 
Industry Role:
Join Date: Nov 2004
Posts: 10,468
quick css/xhtml question

i want to change the color of one word in the middle of a sentence. it's not going to be a link...it's just for emphasis.

using

Code:
<font color = "#">
in the middle of a paragraph doesn't validate.

is there any way to do it OTHER THAN making it a hyperlink and changing the cursor to default through css.
__________________
★★★
Young is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-18-2007, 10:09 AM   #2
CurrentlySober
Too lazy to wipe my ass
 
CurrentlySober's Avatar
 
Industry Role:
Join Date: Aug 2002
Location: A Public Bathroom
Posts: 38,648
?
Lost me dude...
__________________


👁️ 👍️ 💩
CurrentlySober is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-18-2007, 10:11 AM   #3
Young
Bland for life
 
Industry Role:
Join Date: Nov 2004
Posts: 10,468
thank you for popping your sig in my thread and giving me a bump.

anyone? anyone? bueller? bueller?
__________________
★★★
Young is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-18-2007, 10:11 AM   #4
Nookster
Confirmed IT Professional
 
Industry Role:
Join Date: Nov 2005
Location: Hollywood, CA
Posts: 3,744
Quote:
Originally Posted by Young View Post
i want to change the color of one word in the middle of a sentence. it's not going to be a link...it's just for emphasis.

using

Code:
<font color = "#">
in the middle of a paragraph doesn't validate.

is there any way to do it OTHER THAN making it a hyperlink and changing the cursor to default through css.
Use the span element.
Code:
<style>#className { color:#ff0000; }</style>
Your sentence with <span id="className">text to change</span> in the middle.
Nookster is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-18-2007, 10:14 AM   #5
Young
Bland for life
 
Industry Role:
Join Date: Nov 2004
Posts: 10,468
Quote:
Originally Posted by Nookster View Post
Use the span element.
Code:
<style>#className { color:#ff0000; }</style>
Your sentence with <span id="className">text to change</span> in the middle.
awww span.

thanks! appreciated. owe you one.
__________________
★★★
Young is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.