Forum Moderators: open

Message Too Old, No Replies

different font sizes in one <p> (paragraph)

how to have different font sizes in one paragraph

         

abushahin

4:21 pm on Nov 20, 2009 (gmt 0)

10+ Year Member



Hi, does anyone know of a way to have different font sizes in one paragraph, i know yu can have the <font> tag but it is now deprecated so whats out there for xhtml 1.1, id like to be able to show a "word" followed by a number in a smaller font, any help appreciated thanks abu

swa66

4:55 pm on Nov 20, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You can style an inline element like a <i>, <em>, <b>, ... or even a <span> if you have nothing more semantically significant.

StoutFiles

5:38 pm on Nov 20, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Use a css ID with one of the tags listed above. You are right, never use the font tag.

abushahin

6:06 pm on Nov 20, 2009 (gmt 0)

10+ Year Member



that worked just added a span in between and put a style inline, thanks for the input! abu