View Full Version : Text Colour Change
djohno24
02-13-2009, 06:07 PM
<h1><strong><span class="blue">Storage Solutions </span></strong></h1>
Can anyone tell me what i am doing wrong, when i preview this it stays black and the text doesnt turn blue
Thanks
Snookerman
02-13-2009, 08:01 PM
Make sure your css code looks like this:
.blue {
color: blue;
}
Good luck!
Dirt_Diver
02-20-2009, 05:56 AM
You could also write it like this
<h1><strong><font color="#0000FF">Storage Solutions </font></strong></h1>
but it would be better to do set it up in the css.
Name it according to its position in on the page, ie. header, sides, footer, ect.
johnstuart
02-28-2009, 06:31 PM
If you wanted to do inline styles do
<span style='color:blue'>Contents</span>
bluewalrus
03-01-2009, 12:15 AM
you probably only need half of those tags as well.
.blue {
color:blue;
font-weight:bold;
}
<h1 class="blue">Storage Solutions</h1>
or
<h1 style="color:blue; font-weight:bold;>Storage Solutions</h1>
Note: 'blue' is not a good choice of class name. Identifiers should be semantic, not visual.
alyssa
03-02-2009, 06:13 AM
Hi djohno,
Try this code
<h1><strong><font color="#0000FF">Storage Solutions </font></strong></h1>
Have a nice day !
Don't do that, please. The <font> element has been deprecated since HTML3.
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.