PDA

View Full Version : Colour values



SteveH
Mar 11th, 2010, 02:03 PM
Hello

I have a main.css file and I am trying to experiment with the font colour. It is a grey colour at the moment and I just wanted to try out different shades.

This is the file:


html, body, div, span, object, iframe,h1, h2, h3, h4, h5, h6, p, blockquote, pre,a, abbr, acronym, address, code,
del, dfn, em, img, q, dl, dt, dd, ol, ul, li,fieldset, form, label, legend,table, caption, tbody, tfoot, thead,
tr, th, td

{

margin: 0;
padding: 0;
border: 0;
font-weight: inherit;
font-style: inherit;
font-size: 100%;
font-family: inherit;
vertical-align: baseline;}

body

{

line-height: 1.5;
background: #fff;
margin:1.5em 0;}

table { border-collapse: separate;
border-spacing: 0;}

caption, th, td
{ text-align: left;
font-weight:400;}

blockquote:before, blockquote:after, q:before, q:after { content: "";}

blockquote, q { quotes: "" "";}

a img { border: none;

}

body

{

color: #797979;
font-family: Verdana, Arial;
font-size: 75%;
}
a

{
color: #4F6182;

text-decoration: none;

}
a:hover {
color: #354158;}

#container
{
width: 500px;
margin: auto;
padding-top: 30px;
padding-bottom: 50px;}

#container
#logo
{
background: url(../img/logo.gif) no-repeat top left;
height: 44px;
padding-bottom: 5px;
border-bottom: 1px solid #797979;
margin-bottom: 20px;}

#container
#logo h1

{

text-indent: -9999px;}

#footer
{

margin-top: 20px;}

.nav
{
float: right;
margin-top: -15px;}

h2{
font-size: 2.2em;
margin: 0;
border-bottom: 1px solid #797979;
margin-bottom: 5px;
color: #354158;}

h3{
font-size: 1.8em;
margin-top: 30px;
border-bottom: 1px solid #797979;
margin-bottom: 10px;
color: #607293;}

h4{
font-weight: bold;}

.home
.menuItem h3
{
font-size: 1.8em;
line-height: 1.0em;
float: none;
position: relative;
display: block;
border-bottom: none;
margin: 0;}

.home
.menuItem p {margin-left: 0px;
margin-bottom: 0px;
position: relative;
display: block;
border-bottom: none;
}

.home
.menuItem {display: block;
position: relative;
padding-bottom: 5px;
padding-top: 5px;
color: #797979;
outline: none;
cursor: pointer;
height: 40px;
border-bottom: 1px solid #797979;}

.home
.menuItem:hover {
background-color: #f1f1f1;}

.home h2 {
color: #354158;
margin-bottom: 0px;}
.arrow {
font-size: 4em;
position: absolute;
right: 0px;
top: -16px;
color: #b9b9b9;}

.home
.menuItem:hover
.arrow {
right: -4px;}

.home h2 {
background: url(../img/mootools-plugins.gif) no-repeat top left;
width: 500px;
height: 40px;
text-indent: -9999px;}

h3.example {
background: url(../img/heading-example.gif) no-repeat top left;
height: 30px;
text-indent: -9999px;}

h3.features {
background: url(../img/heading-features.gif) no-repeat top left;
height: 30px;
text-indent: -9999px;}

h3.compatibility {
background: url(../img/heading-browser.gif) no-repeat top left;
height: 30px;
text-indent: -9999px;}

ul {
margin-left: 15px;}

dt {
float: left;}
dd {
margin-left: 150px;
margin-bottom: 10px;}

#usage p {
margin: 10px 0px 5px 0px;}


I have tried to change these values at different times:


color: #797979;

color: #4F6182;

color: #354158;

yet nothing seems to make any difference!

I am trying to alter the correct values, aren't I?!!!

Thanks.

Steve

mbaker
Mar 11th, 2010, 03:20 PM
I have tried to change these values at different times:


color: #797979;

color: #4F6182;

color: #354158;
yet nothing seems to make any difference!

You are changing the right values, but probably not by enough to make a noticeably visible difference.

If you want to be sure that a change will be visible, use something extreme like #ff0000; or #00ff00; or #0000ff; or #ffff00;

Or for simplicity use some of the named colours like red, green or blue.

SteveH
Mar 11th, 2010, 04:29 PM
Many thanks

mBaker, your throwing caution to the wind did the trick!:p

Cheers

Steve