 |
|
|
| View previous topic :: View next topic |
| Author |
Message |
alyson
Joined: 22 Mar 2008 Posts: 21
|
Posted: Thu Apr 02, 2009 8:36 am Navigation class help please |
|
|
|
Hi, as usual css defeats me,
I want to colour code my links in my text on my website where the font colour and design is mainly browns and golds so the blue underline does not really suit !
I can make it work with this code
.nounder
a
{
text-decoration:none;color: #663300;font-weight:bold;
}
and then adding the class nounder on the page within the <p> tag, (I need to do it by class as its different to the menu nav which is not bold)
I have tried for hours and hours but nothing works, what I think should be like this
.nounder
a:link
{
text-decoration:none;color: #663300;font-weight:bold;
a:visited
{
text-decoration:none;color: #663300;font-weight:bold;
a:hover
{
color: #663300;font-weight:bold;
a:active
{
text-decoration:none;color: #663300;font-weight:bold;
}
giving me a bold link work which when you hover produces an underline
but I failed,
I know its the css code, I have really strugled with this for a year or so and mostly if I try for a day or so I work it out but I have never tried 'class' before and I am wrong
alyson |
|
sticks464

Joined: 31 Dec 2006 Posts: 2625
|
Posted: Thu Apr 02, 2009 9:55 am |
|
|
|
It works if you do some color changes, put the rules on the same line and close the rule correctly.
| Code: |
.nounder a {
text-decoration:none;
color: #663300;
font-weight:bold;
}
.nounder a:visited {
color: #663300;
}
.nounder a:hover {
color: #00FF00;
text-decoration: underline;
}
.nounder a:active {
color: #663300;
} |
|
|
alyson
Joined: 22 Mar 2008 Posts: 21
|
Posted: Thu Apr 02, 2009 10:03 am |
|
|
|
thank you soooo much, I can see from my pasting that I did miss some brackets but then I missed some more, it works now,
thank you
alyson |
|
sticks464

Joined: 31 Dec 2006 Posts: 2625
|
Posted: Thu Apr 02, 2009 10:09 am |
|
|
|
| Your welcome. |
|
alyson
Joined: 22 Mar 2008 Posts: 21
|
Posted: Thu Apr 02, 2009 10:17 am |
|
|
|
ps
'missed a bracket'
got the tee shirt
a |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|
|
 |
|
|
|
|
|
|
|