Forums > Help! > Web development help please...

Login/Join to Participate

DeepSoulSheep
DeepSoulSheep

Carpal \'Tunnel
Location: Berlin
Member Since: 25th Sep 2002
Total posts: 2617
Posted:I'm using the following CSS for my naivgation


<!--

A:link {color: ##FFFFFF; text-decoration: none;}

A:visited {color: ##FFFFFF; text-decoration: none; }

A:active {color: #FF0000; text-decoration: none; }

a:hover {color: #FF0000; text-decoration: underline; font: bold ;}

// -->


Alls going well but my problem is that as soon as a link's been clicked on the my browser's built in "if you've clicked on this link change its colour to purple' is kicking in. My navigation's in a table with black background and I can't see the links properly after I've clicked on one. I would've thought that my CSS would've overridden it but alas no.

Anyone have any idea's is there anything I can do other than make's my nav bar's Back ground colour different?

Any help'd be well appreciated...


I live in a world of infinite possibilities.

Delete Topic

Posted:Really simple answer would be to use a gif for the link. you can make it look funky and the colour don't change, but thats the no programming solution...

Proramatically I'd have to look into it a bit further.

PsyB.


Delete

oli
not with cactus
Location: bristol/ southern eastern devo...
Member Since: 24th Jul 2003
Total posts: 2052
Posted:i know very little about this sort of thing and probably am going to sound a bit foolish here, but what happens if you just change the vlink="colour" value in the body tag?

but im not really sure what a css is so my advice is probably not going to be good.


Me train running low on soul coal
They push+pull tactics are driving me loco
They shouldn't do that no no no

Delete

musashii
musashii

starring Skippy the green llama
Location: Seattle, WA
Member Since: 14th Dec 2002
Total posts: 1148
Posted:part of the problem might be that you don't have a default class for just the a tag itself. Might also want to use lowercase for all related a tags. All else failing, create a new class of anchor tags and declare the class in the a tag, ie <a class="2a" href="foo.htm">blah</a>(see code below). I have these classes setup for a site I've done where the background might be black, grey, or white. Also good to use a global style sheet for the site, using the LINK tag to link to it on every page(if you haven't done so already )

code:
a
{
color: black;
font-weight: normal;
text-decoration: none;
}
a:link
{
color: black;
font-weight: normal;
text-decoration: none;
}

a:active
{
color: #686868;
font-weight: normal;
text-decoration: none;
}

a:visited
{
color: #CCC;
font-weight: normal;
text-decoration: none;
}

a:hover
{
color: #686868;
font-weight: normal;
text-decoration: underline;
}
.2a
{
color: white;
font-weight: bold;
text-decoration: none;
}
.2a:link
{
color: white;
font-weight: bold;
text-decoration: none;
}

.2a:active
{
color: black;
font-weight: bold;
text-decoration: none;
}

.2a:visited
{
color: #000;
font-weight: bold;
text-decoration: none;
}

.2a:hover
{
color: white;
font-weight: bold;
text-decoration: underline;
}

.2b
{
color: white;
text-decoration: none;
}
.2b:link
{
color: white;
text-decoration: none;
}

.2b:active
{
color: black;
text-decoration: none;
}

.2b:visited
{
color: #CCC;
text-decoration: none;
}

.2b:hover
{
color: white;
text-decoration: underline;
}


First intention, then enlightenment..
Ars Pyronomica

" Life is programmed. Whether death is programmed or not is yet to be determined."

Delete

Dom
Dom

Carpal \'Tunnel
Location: Bristol, UK
Member Since: 19th Dec 2001
Total posts: 3009
Posted:You've got 2 hashes (##) in front of your colour spec. That should fix it.

Also I wouldn't have the bold on hover - this always annoys me as it can cause other page elements to shift and from a design point of view this isn't desirable.


Delete

DeepSoulSheep
DeepSoulSheep

Carpal \'Tunnel
Location: Berlin
Member Since: 25th Sep 2002
Total posts: 2617
Posted:Thanks everyone
Psylent_BoB was gunna try stay away from gif's cause they're needless bandwidth (though I've been reconsidering since the hassle started )

Oli, thanks but nope no happeno.

musashii Ta, only say your post now....am going to move the CSS external to html pages once I'm finished... I usually spend all my time doing this first and then give up in the end...

Cheers Dom, that's sorted now. Brainless copying and pasting leads to invisible errors. Must memorise all them colour codes


I live in a world of infinite possibilities.

Delete


Similar Topics

Using the keywords [development] we found the following similar topics.
1. Forums > millennium development goals, where are we?
2. Forums > Web development help - navigation bar keeps moving [11 replies]
3. Forums > Web development help please... [5 replies]
4. Forums > Web development help... [8 replies]
5. Forums > Character Development [12 replies]

     Show more..