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 August 2nd, 2001, 09:24 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: 12
Cool Simple CSS - Here's your chance to look REALLY smart!

ok, this may be a pretty simple question, but i just have never really needed to use css until now. so, here goes....

I have this code in my document...

</title>
<STYLE fprolloverstyle>
A:link {TEXT-DECORATION: none; COLOR: white}
A:vlink {TEXT-DECORATION: none; COLOR: white}
A:hover {TEXT-DECORATION: underline; COLOR: #ff0000}
</STYLE>
</head>

Everything works right, except for my declarations for the vlink. I assume maybe vlink is not the correct way to say Visted link. what happens right now is that the document looks great until you have visted a link, and then the link turns black and has a line under it. how do i keep the link white with no underline after it has been visted?

Also, how do right the same style sheet inline? So that i can have some of my links one color and other links another. i do not want to link my style sheets, because of some complications with PHP. i would rather just use inline.

Thanks!

Caleb
caleb@jsoftintl.com

Last edited by calebdzahnd : August 2nd, 2001 at 09:27 AM.

Reply With Quote
  #2  
Old August 2nd, 2001, 11:07 AM
szarecor szarecor is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2001
Location: New York
Posts: 122 szarecor User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 13
Caleb:

This is what you're looking for:
------------------------------
<style type="text/css">
a:link {text-decoration:none;color:#ffffff;}
a:visited {text-decoration:none;color:#ffffff;}
a:hover {text-decoration:underline;color:#ff0000;}
</style>
-------------------------------

Quote: "<STYLE fprolloverstyle>". Is this a typo?

By the way, css def's are conventionally written in lowercase, although I suppose your uppercase def's wouldn't cause problems.

Good luck

Reply With Quote
  #3  
Old August 2nd, 2001, 03:25 PM
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: 12
Thanks! That worked great!

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignCSS Help > Simple CSS - Here's your chance to look REALLY smart!

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