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

Login/Join to Participate

DeepSoulSheepGOLD Member
Carpal \'Tunnel
2,617 posts
Location: Berlin, Ireland


Posted:
I'm using the following CSS for my naivgation





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.


AnonymousPLATINUM Member


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.

oliSILVER Member
not with cactus
2,052 posts
Location: bristol/ southern eastern devon, United Kingdom


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


musashiistarring Skippy the green llama
1,148 posts
Location: Seattle, WA


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 blah(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."


DomBRONZE Member
Carpal \'Tunnel
3,009 posts
Location: Bristol, UK


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.

DeepSoulSheepGOLD Member
Carpal \'Tunnel
2,617 posts
Location: Berlin, Ireland


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.



Similar Topics

Using the keywords [development] we found the following existing topics.

  1. Forums > Support needed Save Ningaloo [72 replies]
  2. Forums > dumming down the gene pool? [34 replies]
  3. Forums > Character Development [12 replies]
  4. Forums > Web development help please... [5 replies]
  5. Forums > Thanks from AREDS, India [10 replies]

      Show more..

HOP kreisförmig

Melden Sie sich an, um die neuesten Informationen zu Verkäufen, Neuerscheinungen und mehr zu erhalten ...