#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2001
    Posts
    45
    Rep Power
    13

    css link specification fails with empty link


    I'm using CSS to define link style, including font weight of 400, as follows.

    A:link
    {

    color: purple;
    text-decoration:underline;
    font-weight: 400;
    background-color: transparent;

    }
    The preceding works fine for a normal link, such as

    <a href="./view_profile.php3"> view profile </a>

    However, in some cases I want an empty link to launch a daughter window using a Javascript ONCLICK trigger.


    <a href="#" ONCLICK="CP_Launch();">
    Control Panel</a>
    In the above case my link definition in the style sheet is ignored because of the "#". The link IS still recognized as a link and the default link style, font weight and size is applied. Is there a way to make an "empty" link be recognized by the CSS so that the correct font weight of 400 is applied? Thanks very much.
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2001
    Posts
    45
    Rep Power
    13
    Hmmmmmm. OK, I'm completely bamboozled. After rebooting my computer, the CSS suddenly started recognizing the link. So perhaps this was a browser fatigue issue and not a real problem?

IMN logo majestic logo threadwatch logo seochat tools logo