By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,396 Members | 1,882 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,396 IT Pros & Developers. It's quick & easy.

How to make a visited link 'bold'

P: 4
Hello
I have a problem in HTML. I would like to make a link BOLD on visiting that link. ie, when you click on a link it should be bold and after visiting it should be ordinary fond.

How can I make this possible?Please help me
May 1 '07 #1
Share this Question
Share on Google+
4 Replies


drhowarddrfine
Expert 5K+
P: 7,435
In your css:
Expand|Select|Wrap|Line Numbers
  1. a:visited{
  2. font-weight:bold
  3. }
May 1 '07 #2

P: 4
Hello
I have a problem in HTML. I would like to make a link BOLD on visiting that link. ie, when you click on a link it should be bold and after visiting it should be ordinary fond.

How can I make this possible?Please help me
Hello Thank You for the reply....
Its working fine......
I added the code in CSS , but then all the visited link becomes bold. I do need only active link(currently visiting) as bold and all others as normal.......
Please do reply...:)
May 2 '07 #3

drhowarddrfine
Expert 5K+
P: 7,435
It probably is working but you forgot to clear your history and maybe the cache so it is always 'visited'. Also, I forgot to say you may need or want to be sure and set a:link to what you want initially.
May 2 '07 #4

P: 4
It probably is working but you forgot to clear your history and maybe the cache so it is always 'visited'. Also, I forgot to say you may need or want to be sure and set a:link to what you want initially.
Hello once again thank you for the reply its working fine.....
I included the following code in css
a:link{
color : #51A951;
text-decoration:none;
font-weight:normal;
}

a:visited {
color: #51A951;
text-decoration: none;
font-weight: bolder;
}
after clearing private data its working fine.....
But after that if you click a link it will be okay....but if u click on another link it will also become bold.........
Could you please send me an answer....... shall I use java script
Please do reply..
May 2 '07 #5

Post your reply

Sign in to post your reply or Sign up for a free account.