SunQuest
           CSS Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignCSS Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old October 7th, 2002, 09:08 PM
robpet robpet is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2001
Posts: 45 robpet User rank is Just a Lowly Private (1 - 20 Reputation Level) 
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.

Reply With Quote
  #2  
Old October 7th, 2002, 09:15 PM
robpet robpet is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2001
Posts: 45 robpet User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
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?

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignCSS Help > css link specification fails with empty link


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway