Changing text color in CSS file

mfdc's picture

They have: 160 posts

Joined: Aug 2004

Hi guys/girls

Havent posted on here for a while so hope everyones ok. I have a .PHP file that displays news bullitins & loads a stylesheet called style.css which Ive included the code below (sorry about the length) however, for the life of me, I cannot change the body of the text, every other aspect, the background colour, the title's of each news piece can all be changed but not the actual text color. I only want to change it to white (fffff) ?????

Any ideas ?

TT PRE { font-family: monospace; }

body {
background-color: #000000;
text-color: #ffffff
margin: 15px 0px 0px 0px;
font-family: verdana, sans-serif;
font-size: 12px;
}

table {
font-family: verdana, sans-serif;
font-size: 12px;
text-color: #ffffff;
}

a:link, a:visited, a:active { color: #ffffff;
text-decoration: none;
background-color: transparent;
}

a:hover { text-decoration: underline;
background-color: transparent;
}

#main {
background-color: #000000;
text-color: #ffffff;
border: 1px solid #854900;
padding: 10px;
}

#menu {
background-color: #000000;
text-color: #ffffff
border: 1px solid #854900;
padding-top: 5px;
padding-right: 15px;
padding-left: 5px;
font-size: 12px;
white-space: nowrap;
}

#menu h3 {
font-size: 14px;
text-decoration: underline;
}

#header {
text-align: center;
font-size: 24px;
color: #ffffff;
font-weight: bold;

}

#time {
font-size: 10px;
margin-left: 6px;
}

#date {
font-size: 12px;
font-weight: bold;
margin-top: 15px;
border-bottom: solid 1px #854900;
; color: #ffffff; background-color: #000000 }
#subject {
font-size: 12px;
font-weight: bold;
text-color: #ffffff;
margin-left: 6px;
}
#morelink {
font-size: 10px;
}
#post {
margin-bottom: 5px;
margin-left: 6px;
}
#longpost {
margin-top: 5px;
margin-left: 6px;
}

He has: 698 posts

Joined: Jul 2005

mfdc wrote:
body {
background-color: #000000;
text-color: #ffffff
margin: 15px 0px 0px 0px;
font-family: verdana, sans-serif;
font-size: 12px;
}

'text-color' should be changed to just 'color'. Wink

Kurtis

mfdc's picture

They have: 160 posts

Joined: Aug 2004

bless you, of course, how silly of me. Thankyou very much.

Confused Wink

He has: 698 posts

Joined: Jul 2005

No problem. I noticed right away because I always want to put 'font-color' because the other CSS font attributes are 'font-size', 'font-family', etc...it's really a bit odd if you ask me. Sticking out tongue

Kurtis

JeevesBond's picture

He has: 3,956 posts

Joined: Jun 2002

I was reading that and thinking to myself: "Damn that color property is so ambiguous." wish that would get changed, it's not in line with other properties IMO.

a Padded Cell our articles site!

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.