CSS changes don't appear?

Started by Proenski, September 11, 2005, 04:00:31 PM

Previous topic - Next topic

Proenski

Hi there,

I would like to change the font colour of the "quoteheader, codeheader" from black to white but when I change the CSS the changes made can't be seen. It seems that the settings get overruled with the definition of the navigation link settings.

Does anybody know how to tackle this?

Thanks!
May the force be with you

kegobeer

Post a link to your site so we can see what you are doing.
"The truth of the matter is that you always know the right thing to do. The hard part is doing it." - Norman Schwarzkopf
Posting and you (Click "WATCH THIS MOVIE")

Captain_Morrigan

Try CTRL+F5 at the same time. It forces the downloaded CSS to re-download and display properly, at least it should.

Proenski

May the force be with you

Proenski

Quote from: Captain_Morrigan on September 11, 2005, 04:43:53 PM
Try CTRL+F5 at the same time. It forces the downloaded CSS to re-download and display properly, at least it should.

Yeah I know about this trick but that's not it. The changes I made to the CSS are being overruled. I tried using a SPAN CLASS but that doesn't work either...
May the force be with you

Captain_Morrigan

Make a new class like this:


.nav
{
color : #FFFFFF;
font-size : FONT SIZE;
text-align : left;
font-family: WHATEVER your FONT FAMILY IS;
text-decoration : underline;
}

.nav:hover
{
color : HOVER COLOR;
}


Then where those links are edit the code just a smidge and add

<a href=Link class=nav>Text</a>

to those links and that should fix it for you.

Proenski

Thanks but unfortunately I've tried that too and it doesn't work. Still the "original" A link settings overrule this.

This is in my CSS:

.menu, menu a:link, menu a:visited
{
font-weight: bold;
background-color: #005e9d;
color: #b0cde1 !important;
text-decoration: none;
}

.menu a:hover
{
color: #CCCCFF;
text-decoration: none;
}


The result can be seen here:

http://www.depechemodeforum.com/smf/index.php
May the force be with you

Captain_Morrigan

It's because the original coding for the links is wrong. You need to do this to that coding you have:

.menu, menu:visited
{
font-weight: bold;
background-color: #005e9d;
color: #b0cde1 !important;
text-decoration: none;
}

.menu:hover
{
color: #CCCCFF;
text-decoration: none;
}

Proenski

Thanks, it's working with this code now:

.menu
{
font-weight: bold;
color: #b0cde1! important;
background-color: #005e9d;
text-decoration: none;
font-size: 9pt;
}

.menu a:link, .menu a:visited, .menu a:hover
{
color: #B0CDE1;
text-decoration: none;
}

.menu a:hover{
text-decoration: underline;
}
May the force be with you

Captain_Morrigan

#9
I don't see any change to it at all. I went to your site again and it's still all black.

This does not work:

.menu
{
font-weight: bold;
color: #b0cde1! important;
background-color: #005e9d;
text-decoration: none;
font-size: 9pt;
}

.menu a:link, .menu a:visited, .menu a:hover
{
color: #B0CDE1;
text-decoration: none;
}

.menu a:hover{
text-decoration: underline;
}


try this instead:
.menu
{
font-weight: bold;
color: #b0cde1! important;
background-color: #005e9d;
text-decoration: none;
font-size: 9pt;
}

.menu:link, .menu:visited
{
color: #B0CDE1;
text-decoration: none;
}

.menu:hover{
color: #B0CDE1;
text-decoration: underline;
}

Proenski

Quote from: Captain_Morrigan on September 13, 2005, 05:19:48 PM
I don't see any change to it at all. I went to your site again and it's still all black.

This does not work:


Trust me it does, perhaps a browser cash issue? Try a refresh  ;D
May the force be with you

Captain_Morrigan

No it's not a browser cache issue because I had cleared my cache and cookies six times before I came back to this thread after last I viewed your site and cleared it again while at your site.

The links are still black.

Proenski

Quote from: Captain_Morrigan on September 14, 2005, 03:02:16 PM
No it's not a browser cache issue because I had cleared my cache and cookies six times before I came back to this thread after last I viewed your site and cleared it again while at your site.

The links are still black.

I wonder then what browser you are using? I'm using Explorer 6.0 and all is fine.
May the force be with you

Captain_Morrigan


Advertisement: