SitePoint Sponsor

User Tag List

Results 1 to 6 of 6
  1. #1
    + platinum's Avatar
    Join Date
    Jun 2001
    Location
    Adelaide, Australia
    Posts
    6,441
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Really dumb question.....

    Hey. Now i've been using CSS for a while on one of my site just for rollover effects and that sorta thing. But i have been x-peri-ment'n latly and it doesn't seemt to like me that much anymore I think it want a divorce .

    BUT getting back to what is my problem, i have my linked stylesheet set up, and in the page properties I have nothing selected for link colours, etc. Now the effect i want is for links to be underlined in white (8pt) and bold. for the a:hover i want the underline to dissapear. Got that working but after you click it and it becomes 'clicked' it just goes purple. (and yess i have the a:visited tag happening too)

    any ideas (i'll put an example up of what is happenign soon if you need)

    thanks in advance

  2. #2
    Making a better wheel silver trophy DR_LaRRY_PEpPeR's Avatar
    Join Date
    Jul 2001
    Location
    Missouri
    Posts
    3,428
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    did ya try a:active?
    - Matt ** Ignore old signature for now... **
    Dr.BB - Highly optimized to be 2-3x faster than the "Big 3."
    "Do not enclose numeric values in quotes -- that is very non-standard and will only work on MySQL." - MattR

  3. #3
    + platinum's Avatar
    Join Date
    Jun 2001
    Location
    Adelaide, Australia
    Posts
    6,441
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    this is what a have at the moment:

    <!--
    a:hover { color: #006666; text-decoration: none}
    a:active { text-decoration: none}
    a:link { text-decoration: underline}
    a:visited { text-decoration: underline}
    .menuheading { font-family: Arial, Helvetica, sans-serif; font-size: 10pt; font-weight: bolder}
    .normaltext { font-family: Arial, Helvetica, sans-serif; font-size: 10pt}
    body { font-family: Arial, Helvetica, sans-serif; font-size: 10pt; text-decoration: none}


    -->
    Last edited by platinum; Sep 20, 2001 at 03:53.

  4. #4
    SitePoint Member [MOS]'s Avatar
    Join Date
    Jun 2001
    Location
    Madrid, Spain
    Posts
    24
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    What I usually do is to group the non hovered classes into one rule, and then write a sepparate a:hover, like this:

    a, a:active, a:link, a:visited {
    color: #fff;
    font-weight: bold;
    text-decoration: none
    }

    a:hover {
    color: #ccc;
    text-decoration: underline overline;
    }

    Remember when you click a link it becomes "active", and when you click anywhere in the page afterwards it becomes "visited".

    So define the style for active and visited, also.
    Carlos de la Orden
    The higher a man gets, the smaller he looks for people who can't fly.

    www.aspfacil.com, el sitio para programadores ASP

  5. #5
    Net Senior Citizen tommatthews's Avatar
    Join Date
    Apr 2001
    Location
    Sydney Australia
    Posts
    869
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    What about putting a color in the a:active?


    affordable website design

    :: sydney australia ::

  6. #6
    + platinum's Avatar
    Join Date
    Jun 2001
    Location
    Adelaide, Australia
    Posts
    6,441
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    cool, thanks guys i'll try those thing 2moro (defining a colour might be it.....)


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
  •