Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5

Thread: two lnk styles

  1. #1
    Regular Coder
    Join Date
    Mar 2003
    Posts
    113
    Thanks
    0
    Thanked 0 Times in 0 Posts

    two lnk styles

    I am using the code mentioned below ..but for some reason the the style sheets do not render different. Some of the links on the page partially follow link2 and some of them follow link

    Any suggestions would be deeply appreciated!


    Code:
    a:link{
    	color: #545454;
    	text-decoration: none;
    	font-size: 12px;
    	font-family: Arial, sans-serif;
    	font-weight: bold;
    }
    
    a:link:visited{
    	color: #545454;
    	text-decoration: none;
    	font-size : 12px; 
    	font-family : Arial, sans-serif;
    	font-weight : bold;
    }
    
    a:link:hover{
    	font-family : Arial, sans-serif;
    	text-decoration: underline;
    	font-size : 12px; 
    	color: Red;
    	font-weight : bold;
    }	
    
    /*  second link style */
    
    a:link2{
    	color: #005ACE;
    	text-decoration: none;
    	font-size : 10px; 
    	font-family : Arial, sans-serif;
    	font-weight : bold;
    }
    
    a:link2:visited{
    	color: #005ACE;
    	text-decoration: none;
    	font-size : 10px; 
    	font-family : Arial, sans-serif;
    	font-weight : bold;
    }
    
    a:link2:hover{
    	font-family :Arial, sans-serif;
    	text-decoration: underline;
    	font-size : 10px; 
    	color: #FD0000;
    	font-weight : bold;
    }

  • #2
    Senior Coder
    Join Date
    Jun 2002
    Location
    Nashua, NH
    Posts
    1,724
    Thanks
    0
    Thanked 0 Times in 0 Posts
    No such pseudo-class as link2
    Vladdy | KL
    "Working web site is not the one that looks the same on common graphical browsers running on desktop computers, but the one that adequately delivers information regardless of device accessing it"

  • #3
    Regular Coder
    Join Date
    Mar 2003
    Posts
    113
    Thanks
    0
    Thanked 0 Times in 0 Posts

    previous CF thread...

    I was basing my code on this thread...

    Previous CF thread

    Wonder what I am doing wrong...

  • #4
    Senior Coder
    Join Date
    Aug 2002
    Location
    Kansas City, Kansas
    Posts
    1,518
    Thanks
    0
    Thanked 2 Times in 2 Posts
    Try the following and read this section of w3schools about pseudo classes.
    Code:
    a.link{
    	color: #545454;
    	text-decoration: none;
    	font-size: 12px;
    	font-family: Arial, sans-serif;
    	font-weight: bold;
    }
    
    a.link:visited{
    	color: #545454;
    	text-decoration: none;
    	font-size : 12px; 
    	font-family : Arial, sans-serif;
    	font-weight : bold;
    }
    
    a.link:hover{
    	font-family : Arial, sans-serif;
    	text-decoration: underline;
    	font-size : 12px; 
    	color: Red;
    	font-weight : bold;
    }	
    
    /*  second link style */
    
    a.link2{
    	color: #005ACE;
    	text-decoration: none;
    	font-size : 10px; 
    	font-family : Arial, sans-serif;
    	font-weight : bold;
    }
    
    a.link2:visited{
    	color: #005ACE;
    	text-decoration: none;
    	font-size : 10px; 
    	font-family : Arial, sans-serif;
    	font-weight : bold;
    }
    
    a.link2:hover{
    	font-family :Arial, sans-serif;
    	text-decoration: underline;
    	font-size : 10px; 
    	color: #FD0000;
    	font-weight : bold;
    }

  • #5
    Regular Coder
    Join Date
    Mar 2003
    Posts
    113
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Thanks!!

    I really appreciate your input and the web link. What a wonderful resource!



  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •