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 September 24th, 2001, 08:59 AM
calebdzahnd calebdzahnd is offline
Just Another Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2001
Location: Middle America
Posts: 41 calebdzahnd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 41 m 17 sec
Reputation Power: 8
CSS Question

is it possible to for me to change properties for a link inside another style?

for example, if i have the following style sheet:

------------------------------------------------------------------
h1 {
font:10pt;
font-family: Verdana, Arial, Helvetica, sans-serif;
color: white;
}

a:link {color: #65BAFB; text-decoration: none}
a:visited {color: #65BAFB; text-decoration: none}
a:active {color: #65BAFB; text-decoration: none}
a:hover {color: red; text-decoration: underline}
------------------------------------------------------------------

can i change the styles of a link inside my h1 style?

If so, would it be something like this?:

h1 {
font:10pt;
font-family: Verdana, Arial, Helvetica, sans-serif;
color: white;
a:link: color: #65BAFB; text-decoration: none;
}

thanks!

Reply With Quote
  #2  
Old September 24th, 2001, 09:07 AM
bramsey bramsey is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2000
Location: USA
Posts: 226 bramsey User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 40 m 35 sec
Reputation Power: 8
Here is what I do to change the hover colors of my links for different parts of page. I am sure you can do something similar for what you are after.

The default hover:

A {
font-family : Arial, Helvetica, sans-serif;
font-size : 10px;
font-weight: normal;
color : #666666;
text-decoration : none;
}

A:Hover {
color : #333399;
}

A customized hover for a different part of the page:

.link {
font-family : Arial, Helvetica, sans-serif;
font-size : 12px;
font-weight: normal;
color : #333399;
text-decoration : none;
}

.link a:hover {
color:#666666;
}

Hope that helps.

Reply With Quote
  #3  
Old September 24th, 2001, 10:44 AM
calebdzahnd calebdzahnd is offline
Just Another Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2001
Location: Middle America
Posts: 41 calebdzahnd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 41 m 17 sec
Reputation Power: 8
yeah, thanks!
__________________
Jesus wept; Voltaire smiled. From that divine tear and from that human smile is derived the grace of present civilization.

Reply With Quote
  #4  
Old September 27th, 2001, 06:39 PM
gavster gavster is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2001
Location: Billings, Montana
Posts: 9 gavster User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Be Warned... As far as I can tell NN does not support the <A> tag when using CSS - I always use <a href="link.html"><span class="class>Link</span></a> to get the page to look as accurate as possible on that browser. Hope this helps.

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignCSS Help > CSS Question


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 6 hosted by Hostway