HTML Tutorial


 /help/HTML Help Forum   FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
RegisterRegister - Not registered yet? Got something to say? Join HTML Code Tutorial!
Navigation class help please
Post new topic   Reply to topic    HTML Help Forum -> CSS
View previous topic :: View next topic  
Author Message
alyson



Joined: 22 Mar 2008
Posts: 21

PostPosted: Thu Apr 02, 2009 8:36 am     Navigation class help please Reply with quote

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: 2624

PostPosted: Thu Apr 02, 2009 9:55 am     Reply with quote

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

PostPosted: Thu Apr 02, 2009 10:03 am     Reply with quote

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: 2624

PostPosted: Thu Apr 02, 2009 10:09 am     Reply with quote

Your welcome.
alyson



Joined: 22 Mar 2008
Posts: 21

PostPosted: Thu Apr 02, 2009 10:17 am     Reply with quote

ps

'missed a bracket'

got the tee shirt

a
Display posts from previous:   
Post new topic   Reply to topic    HTML Help Forum -> CSS All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
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
HTML Help Archive
Powered by phpBB © 2001, 2005 phpBB Group
HTML Help topic RSS feed 

 
DARFUR
HOSTING / DESIGN
MAKE MONEY

Home
  |   Tutorials   |   Forum   |   Quick List   |   Link Directory   |   About
Copyright ©1997-2002 Idocs and ©2002-2007 HTML Code Tutorial