www.webdeveloper.com
Results 1 to 4 of 4

Thread: How to adjust link colors in a div or table

  1. #1
    Join Date
    May 2008
    Posts
    298

    How to adjust link colors in a div or table

    Hello,
    How do you specify all the links' colors only in a particular div or only in a particular table? (again, just the links)

    Although I write as below, the links do not appear red:

    .bottombuttons
    {
    position:absolute;
    left:5px;
    top:2200px;
    font-family: arial; font-size:12px; font-color: red;
    }

    I can not seem to adjust font size of the links either even if change the font size above to something other than 12px...

  2. #2
    Join Date
    Feb 2009
    Posts
    2
    Iam not sure if i have understood your problem correctly, but if you want your all the links to appear red:
    In css: a { color:#FF0000; font-size: 12px;}

    If you want all your links to appear Black when you place d cursor on it then:
    a.hover { color: #000000;}

    Avoid giving class to Links But if you have to, then gv specific class name to that hyperlink.

    eg:
    <a class="one" href=" abc.com">

    CSS for this would be:

    a.one { color:#FF0000;}

    hope this helps.. leme knw if ne errors...

  3. #3
    Join Date
    May 2008
    Posts
    298
    Quote Originally Posted by ktulife_86 View Post
    Iam not sure if i have understood your problem correctly, but if you want your all the links to appear red:
    In css: a { color:#FF0000; font-size: 12px;}

    If you want all your links to appear Black when you place d cursor on it then:
    a.hover { color: #000000;}

    Avoid giving class to Links But if you have to, then gv specific class name to that hyperlink.

    eg:
    <a class="one" href=" abc.com">

    CSS for this would be:

    a.one { color:#FF0000;}

    hope this helps.. leme knw if ne errors...
    the one you are suggesting is for the whole links in the entire document. What I am looking for though, is to know how can I do it for the links only in a certain div or table, NOT the entire document.

  4. #4
    Join Date
    Feb 2009
    Posts
    2

    Talking

    Olright..simple.

    .divClassName a { color:#000000; font-size:12px;}

    try this..oughtto work..

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles