SitePoint Sponsor

User Tag List

Results 1 to 4 of 4

Thread: Link Colors

  1. #1
    SitePoint Zealot
    Join Date
    Jan 2002
    Posts
    167
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Link Colors

    I have 2 link colours
    Code:
    .bottomlink {
    	font-family: "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;
    	font-size: 10px;
    	color: #000000;
    	text-align: center;
    		text-decoration: underline;
    } 
    A.bottomlink:hover {
    	color: #CCCCCC;
    	text-decoration: none;
    }
    
    
    a:link {
    	font-family: "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;
    	font-size: 12px;
    	color: #CCCCCC;
    	text-decoration: none;
    }
    a:hover {
    	text-decoration: underline;
    }

    unfortunatly the default colours override links with <a class="bottomlink" href="some.place">link</a> . Is there any way to not have to set the class for every link, but have the 1s with classes use the class info?

  2. #2
    SitePoint Enthusiast
    Join Date
    Apr 2002
    Posts
    75
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Just change
    a:link to a

  3. #3
    SitePoint Member zeca_pedra's Avatar
    Join Date
    Jun 2002
    Posts
    18
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Unhappy Not an answer!

    Hi!
    I'm having a similar problem:
    - I want to use a generic link class for the page, another class for the header of tables and another one for the last row of tables (footer).
    So, I've created an:
    a.headerLink {font-family:Verdana;font-size:11px;color:white;}
    a.footerLink {font-family:Verdana;font-size:10px;color:black;}
    a:link {font-family:Verdana;font-size:11px;color:#CC3300;}
    The problem is this: I just realised that I don't have an ordinary table but an ASP datagrid in my page, which I don't understand what it is and I don't know how to format. I understand CSS and use it for a while but I don't know nothing at all of ASP...
    Can anyone help me? Even if it is just to tell me where I should look for an answer Thanks in advance

  4. #4
    SitePoint Evangelist ktown's Avatar
    Join Date
    May 2001
    Location
    toronto
    Posts
    478
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    you should have something like this to change your default links...

    Code:
    A:active, A:visited, A:link {your style here}
    A:hover {your style here}
    and for your bottomlink class have...

    Code:
    A.bottomlink:active, A.bottomlink:visited, A.bottomlink:link {your style here}
    
    A.bottomlink:hover {your style here}
    nothing will over-ride bottomlink this way...


Bookmarks

Posting Permissions

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