Welcome visitor
* Login
* Register
It is currently January 21st, 2019, 3:19 am
All times are UTC [ DST ]
* Search
View unanswered posts - View active topics

FORUMS » Client Side » HTML



Post new topic Reply to topic  [ 3 posts ] 
Author Message
  Applying a style to change the color of a link
PostPosted: February 4th, 2009, 1:45 am 

Posts: 57
Yeah, im tired of the blue-underlined style for evry link or purple if already visited, so how can I have control over that, i've heard something about style sheets but how does that work?


Top
 Profile  
 
  Re: Applying a style to change the color of a link
PostPosted: February 4th, 2009, 1:58 am 

Posts: 117
Ok, if you want to use a specific file for the styles, you will need to call it from the html file using this line:

<link rel="stylesheet" type="text/css" href="theFile.css"  />


And then you will need to create the .css file. You can do it using any text editor, just remember to save it as .css file. On this file you can control all the styles that you use on your html document, aswering your question you might use something like this:

a:link{color: #ff00ff;
text-decoration:none;
}
a:visited{color: #ff00ff;
font-size:8px;
}
a:hover{color: #ff00ff;
text-decoration:none;
}
a:active{color: #ff0000;
}


Top
 Profile  
 
  Re: Applying a style to change the color of a link
PostPosted: February 5th, 2009, 10:32 pm 

Posts: 96
Web Master wrote:
a:link{color: #ff00ff;
text-decoration:none;
}
a:visited{color: #ff00ff;
font-size:8px;
}
a:hover{color: #ff00ff;
text-decoration:none;
}
a:active{color: #ff0000;
}

Or you can add this previous code on your same html file, just make sure it is written before the <body> tag.
<STYLE TYPE="text/css">
a:link........etc.
</STYLE>


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

FORUMS » Client Side » HTML


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 post attachments in this forum

Search for:
Jump to:  
cron