
October 7th, 2002, 09:08 PM
|
|
Contributing User
|
|
Join Date: Jun 2001
Posts: 45
Time spent in forums: < 1 sec
Reputation Power: 8
|
|
|
css link specification fails with empty link
I'm using CSS to define link style, including font weight of 400, as follows.
Quote: A:link
{
color: purple;
text-decoration:underline;
font-weight: 400;
background-color: transparent;
} |
The preceding works fine for a normal link, such as
Quote: | <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.
Quote:
<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.
|