font color not working (Full Version)

All Forums >> [Web Development] >> Cascading Style Sheets and Accessibility



Message


CelticDragon -> font color not working (3/4/2005 9:43:59)

anyone tell me why this code isn't changing the colour of the text in the footer table?
td.footer {
background-image: url('images/footer2.jpg');
background-position: bottom;
background-repeat: no-repeat;
height: 27px;
text-align: center;
vertical-align: bottom;
font-weight: bold;
color: #666666;
}


I do have a general td code as well but this is easily overridden in the header section
TD Code
td {
vertical-align: top;
font-family: arial, verdana, sans-serif;
font-size: 12px;
text-align: left;
color: #000000;
}


header code
td.navheader {
height: 28px;
background-image: url('images/navheader.jpg');
background-repeat: no-repeat;
vertical-align: middle;
text-indent: 22px;
font-weight: bold;
color: #666666;
}


For some reason the code in the footer won't change colour or lose the bold and there is no extra code on the page to make this happen..... any ideas? It's the same in FF and IE

I don't have a link at the moment as I'm viewing from my hard disk....




c1sissy -> RE: font color not working (3/4/2005 10:08:27)

Not sure why CD, all looks ok from here. When you can post a link do so, makes it a bit easier to see things.




CelticDragon -> RE: font color not working (3/4/2005 10:13:47)

have put it up temporarily here for you to have a look at....




c1sissy -> RE: font color not working (3/4/2005 10:20:45)

Link?

Opps, never mind I see it! roflol!




c1sissy -> RE: font color not working (3/4/2005 10:26:20)

Ok, you have one error in your html that might be the cause of this.
http://www.htmlhelp.com/cgi-bin/validate.cgi?url=http%3A%2F%2Falphamemories.com%2Fbudget%2F&warnings=yes

for the css check this out, you have an error on this as well
http://jigsaw.w3.org/css-validator/validator?uri=http%3A%2F%2Falphamemories.com%2Fbudget%2F&usermedium=all

If you validate your pages, it helps as sometimes just one small thing could throw things off for you.

Let me knwo how this works out when you fix these up[;)]




CelticDragon -> RE: font color not working (3/4/2005 10:31:07)

fixed the h1 problem, not good SEO behaviour I know but it's something we are trying out, can always delete all the H1 lines later (which I would prefer but that's another story)

How do I align the pictures right in CSS? Tried align and text-align to no avail....

Also, any idea why the font colour isn't changing in the footer?

Hurrah! I had declared the footer.htm include to have the TABLE class="foter" not the cell.... changed that and it works! Hurrah!

Still wondering about the image align though.... any ideas?




CelticDragon -> RE: font color not working (3/4/2005 13:03:47)

For anyone who's interested who didn't know (as I didn't) align = right in HTML translates to float:right; in css!

Hurrah for science!




jaybee -> RE: font color not working (3/4/2005 14:25:29)

I was just about to say float:right but went to look at your page first and they were all floating right. Then I found your last post.

Be warned IE can do some odd things with float right so make sure you check it at 1024 and 800.




c1sissy -> RE: font color not working (3/4/2005 17:48:01)

Can he use absolute, or maybe relative positioning?




jaybee -> RE: font color not working (3/5/2005 4:36:01)

Yes he could but it's easier to float right. The problem comes when you resize the window and the pic floats over the text rather than wrapping. One of my sites I got so frustrated that all the pics now float left. [:D]




c1sissy -> RE: font color not working (3/5/2005 7:30:36)

quote:

that all the pics now float left

That was going to be my next suggestion.




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
4.699707E-02