Advanced Search

Results 1 to 6 of 6

Thread: How to add css link to footer?

  1. #1
    Join Date
    Jan 2006
    Posts
    126
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question How to add css link to footer?

    I would like to define specific colour to css element footer if there is link. How to do it?

    Need help.

    footer has css like:
    PHP Code:

      
    .footer {
        
    text-aligncenter;
        
    color#F5CC8E;
        
    font-size11px;


  2. #2
    Join Date
    May 2007
    Location
    Viet Nam
    Posts
    62
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Use and see example:

    Code:
    .footer a, .footer a:visited {
    font-weight: bold;
    font-decoration: none;
    font-size: 11px;
    color: #ffffff;    
    }  
    
    .footer a:hover {
    font-weight: bold;
    font-decoration: underline;
    font-size: 11px;
    color: #000000;    
    }
    it means if u have a link on the footer it will be #FFFFFF color (White) and bold with 11px font-size, no text decoration. The same for the visited link, but if you hover on the link, it will underline that link and change the font color to #000000 (Black).

  3. #3
    Join Date
    Dec 2004
    Location
    UK
    Posts
    2,358
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by Spiritvn View Post
    it means if u have a link on the footer it will be ... bold with 11px font-size, no text decoration.
    Why would one want that? Specifying font size in pixels prevents native font resizing (a bad thing - use percentages), and links are universally recognised as underlined text. Why change such a well-recognised convention?
    Mike

  4. #4
    Join Date
    Jan 2006
    Posts
    126
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    thanks it works

  5. #5
    Join Date
    May 2007
    Location
    Viet Nam
    Posts
    62
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by mwinter View Post
    Why would one want that? Specifying font size in pixels prevents native font resizing (a bad thing - use percentages), and links are universally recognised as underlined text. Why change such a well-recognised convention?
    -.- just an example for him to understand, man. Do not be angry with an example -.-, how the link look is his choice.

  6. #6
    Join Date
    Dec 2004
    Location
    UK
    Posts
    2,358
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by Spiritvn View Post
    just an example for him to understand, man.
    Is there any reason why examples can't follow good practice guidelines?

    Do not be angry with an example
    Where am I angry?

    how the link look is his choice.
    Yes, but that doesn't mean that I, or anyone else, has to like it. Moreover, have you considered that the OP just wouldn't know that there might be a problem.
    Mike

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
  •