Technical Discussion
  >> Web Design / HTML / Web hosting Forum


Register (or login) on our website and you will not see this ad.


These posts have been archived and can no longer be replied to or modified.
  Print Thread
Standard User deleted
(deleted) Sun 01-Mar-09 18:24:27
Print Post

HTML Font Colour


[link to this post]
 
Very simple question (I'm just not thinking straight atm)
I've got a paragraph which is basically a quote. I want the actual quote to be one colour, and who said the quote another colour, but I want it all to be in 1 paragraph. I know I can use the <font color=""> property, but I want to style it in css. Any idea how how I'd do this?
Standard User Kenneth
(legend) Sun 01-Mar-09 18:27:54
Print Post

Re: HTML Font Colour


[re: deleted] [link to this post]
 
In reply to a post by metalhead41:
Very simple question (I'm just not thinking straight atm)
I've got a paragraph which is basically a quote. I want the actual quote to be one colour, and who said the quote another colour, but I want it all to be in 1 paragraph. I know I can use the <font color=""> property, but I want to style it in css. Any idea how how I'd do this?


something like

html -
<span class="quoted">Quoted text</span> xxxx

css
.quoted{
color: red;
}

Ken

Only two things are infinite, the universe and human stupidity, and I'm not sure about the former.
Albert Einstein (1879 - 1955)
Standard User deleted
(deleted) Sun 01-Mar-09 18:47:23
Print Post

Re: HTML Font Colour


[re: Kenneth] [link to this post]
 
Brilliant, cheers for that smile


Register (or login) on our website and you will not see this ad.

  Print Thread

Jump to