CSS Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

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 September 8th, 2001, 04:01 PM
Justas G Justas G is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2001
Location: Lithuania
Posts: 192 Justas G User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 58 m 53 sec
Reputation Power: 12
CSS one more time...

Sometimes I just don't get how CSS works, check this out:
Code:
--- main.CSS ---
A.bold:link { font-family: verdana; font-size: 10pt; color: #cccccc }
A.bold:hover { font-family: verdana; font-size: 10pt; color: #cccccc }

Code:
--- page.php ---
<font face="Verdana" size="2" color="#fffff0">Some text, etc. <a class="bold" href="mailto:email@email.com">Name</a>. All 
        Rights Reserved.<br>
        <a class="bold" href="http://some.site.com">some.site.com</a> | <a class="bold" href="javascript:Start1('info.php')">Site Information</a>
        <br>
         </font>



When I look at index.php I see soemthing like this:

Some text, etc. Name. All Rights Reserved.
some.site.com | Site Information

The first line is ok, just as it should be, but the second line's links are showing up already underlined, but they should be just as the first line, I don't see the logic here, I've tried many many other ways, I closed <font> tags before <a> tags etc., nothing helped...please tell me how this works because I already had similar problems with this...

Reply With Quote
  #2  
Old September 8th, 2001, 08:54 PM
evildj evildj is offline
Beelzebub
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2001
Location: The nether regions...ok, San Diego
Posts: 164 evildj User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 12
Frankly, I don't see how its working on any line.
Try...
a {font-family: verdana; font-size: 10pt; color: #cccccc}
a:hover{font-family: verdana; font-size: 10pt; color: #cccccc}

Or, if you must...
a.bold {font-family: verdana; font-size: 10pt; color: #cccccc}
a:hover.bold{font-family: verdana; font-size: 10pt; color: #cccccc}

Also, links will be underlined unless you specify otherwise, such as...
a {text-decoration: none}
a:hover {text-decoration: underline}

Reply With Quote
  #3  
Old September 8th, 2001, 08:55 PM
Keiichi Keiichi is offline
aHVoPw==
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Jan 2001
Posts: 1,058 Keiichi User rank is Lance Corporal (50 - 100 Reputation Level)Keiichi User rank is Lance Corporal (50 - 100 Reputation Level)Keiichi User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 15 h 42 m 24 sec
Reputation Power: 14
all <a href=""></a> links are underlined automatically. that's where CSS comes in to remove them.

add text-decoration: none in your lines

for example:
A.bold:link { font-family: verdana; font-size: 10pt; color: #cccccc; text-decoration: none }
__________________
Visit my new IIS Tutorial Series!

Reply With Quote
  #4  
Old September 8th, 2001, 08:56 PM
Keiichi Keiichi is offline
aHVoPw==
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Jan 2001
Posts: 1,058 Keiichi User rank is Lance Corporal (50 - 100 Reputation Level)Keiichi User rank is Lance Corporal (50 - 100 Reputation Level)Keiichi User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 15 h 42 m 24 sec
Reputation Power: 14
darn, someone beat me to it

Reply With Quote
  #5  
Old September 8th, 2001, 09:10 PM
evildj evildj is offline
Beelzebub
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2001
Location: The nether regions...ok, San Diego
Posts: 164 evildj User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 12
Right, K1...just remember the logic is...

a:hover (pseudo-class) .bold (class), although just .bold is enough, unless you want to reuse the .bold class with different rules, inheriting the earlier setting.

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignCSS Help > CSS one more time...

Developer Shed Advertisers and Affiliates



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 | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap