Welcome Guest, Not a member yet? Register   Sign In
Using CSS to underline/bold/italicize one word within a paragraph
#1

[eluser]kthxbai2u[/eluser]
I feel noob for asking this, but I dont know CSS too well... Well, I know it, just not what is valid...

This is what I am doing right now:

Code:
<p>      
<font style='font-style:italic;'>Sign up for an account today!</font> Start
by completing the registration code and verifying your email!
</p>

but when I XHTML validate, it says:

Quote:Element "font" undefined. Did you mean "font" or "basefont"?

What is the proper way to italicize/style only one word or one sentance in that paragraph? When I use DIV instead of FONT, it puts a page break before and after the styled text >.<

It figures... I get Ajax working, but I cant simply style a font... The Ajax I tried years back and failed... Heh...


Messages In This Thread
Using CSS to underline/bold/italicize one word within a paragraph - by El Forum - 06-15-2009, 08:50 PM



Theme © iAndrew 2016 - Forum software by © MyBB