Thread: CSS Question

    #1
  1. No Profile Picture
    Just Another Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2001
    Location
    Middle America
    Posts
    41
    Rep Power
    13

    CSS Question


    is it possible to for me to change properties for a link inside another style?

    for example, if i have the following style sheet:

    ------------------------------------------------------------------
    h1 {
    font:10pt;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    color: white;
    }

    a:link {color: #65BAFB; text-decoration: none}
    a:visited {color: #65BAFB; text-decoration: none}
    a:active {color: #65BAFB; text-decoration: none}
    a:hover {color: red; text-decoration: underline}
    ------------------------------------------------------------------

    can i change the styles of a link inside my h1 style?

    If so, would it be something like this?:

    h1 {
    font:10pt;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    color: white;
    a:link: color: #65BAFB; text-decoration: none;
    }

    thanks!
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2000
    Location
    USA
    Posts
    226
    Rep Power
    14
    Here is what I do to change the hover colors of my links for different parts of page. I am sure you can do something similar for what you are after.

    The default hover:

    A {
    font-family : Arial, Helvetica, sans-serif;
    font-size : 10px;
    font-weight: normal;
    color : #666666;
    text-decoration : none;
    }

    A:Hover {
    color : #333399;
    }

    A customized hover for a different part of the page:

    .link {
    font-family : Arial, Helvetica, sans-serif;
    font-size : 12px;
    font-weight: normal;
    color : #333399;
    text-decoration : none;
    }

    .link a:hover {
    color:#666666;
    }

    Hope that helps.
  4. #3
  5. No Profile Picture
    Just Another Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2001
    Location
    Middle America
    Posts
    41
    Rep Power
    13
    yeah, thanks!
    Jesus wept; Voltaire smiled. From that divine tear and from that human smile is derived the grace of present civilization.
  6. #4
  7. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2001
    Location
    Billings, Montana
    Posts
    9
    Rep Power
    0
    Be Warned... As far as I can tell NN does not support the <A> tag when using CSS - I always use <a href="link.html"><span class="class>Link</span></a> to get the page to look as accurate as possible on that browser. Hope this helps.

IMN logo majestic logo threadwatch logo seochat tools logo