GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   quick css/xhtml question (https://gfy.com/showthread.php?t=761484)

Young 08-18-2007 10:02 AM

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.

CurrentlySober 08-18-2007 10:09 AM

?
Lost me dude...

Young 08-18-2007 10:11 AM

thank you for popping your sig in my thread and giving me a bump.

anyone? anyone? bueller? bueller?

Nookster 08-18-2007 10:11 AM

Quote:

Originally Posted by Young (Post 12950942)
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.


Young 08-18-2007 10:14 AM

Quote:

Originally Posted by Nookster (Post 12951027)
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.


All times are GMT -7. The time now is 05:19 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123