Site Reviews
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   SEO Chat ForumsOtherSite Reviews

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 SEO Chat Forums Sponsor:
  #1  
Old March 29th, 2003, 10:02 PM
I Am The Walrus!'s Avatar
I Am The Walrus! I Am The Walrus! is offline
Contributing User
SEO Chat Newbie (0 - 499 posts)
 
Join Date: Mar 2003
Posts: 215 I Am The Walrus! User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
Could somone please review my 'style sheet' code?

Hi,

I'm in the process of re-designing one of my websites and for a couple of
the pages I need some of the links to be set at different colors.

I've cut 'n' pasted the following code from a style sheet tutorial into the head of my html documants:

Code:
<STYLE TYPE="text/css">

<!--A{text-decoration:none}-->
<!--A:hover{text-decoration:underline; }-->

<!--
A.set1:link {color: #FF9F51; background: #FFFFFF}
A.set1:visited {color: #FF9F51; background: #FFFFFF}
A.set1:active {color: #FF9F51; background: #FFFFFF}

A.set2:link {color: #C9CAD9; background: #FFFFFF}
A.set2:visited {color: #C9CAD9; background: #FFFFFF}
A.set2:active {color: #C9CAD9; background: #FFFFFF}
-->  </STYLE>  


For the individual links i'm using class="set1" etc. in the link tags. The code seems to be working find on my browser, but i'd like to know if there are any mistakes in the coding or any possible browser problems.

Any help/advice would be great!

Jon Peibst

Reply With Quote
  #2  
Old March 31st, 2003, 01:42 AM
Coenraad Coenraad is offline
Member
SEO Chat Newbie (0 - 499 posts)
 
Join Date: Feb 2003
Location: the Netherlands
Posts: 39 Coenraad User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
The code seems fine to me.
It works in IE 6 and Mozilla 1.2.1 and the hover doesn't work in NS 4.7

I am he as you are he as you are me and we are all together

Reply With Quote
  #3  
Old April 7th, 2003, 10:45 PM
simple-biz's Avatar
simple-biz simple-biz is offline
simple-biz.com
SEO Chat Newbie (0 - 499 posts)
 
Join Date: Feb 2003
Location: Thailand, Phuket
Posts: 223 simple-biz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 46 m 37 sec
Reputation Power: 6
Send a message via Yahoo to simple-biz Send a message via Skype to simple-biz
One quick suggestion. It will be more SE friendly to keep your style sheet in a seperate file.

Reply With Quote
  #4  
Old April 7th, 2003, 10:54 PM
thewatcher's Avatar
thewatcher thewatcher is offline
Contributing User
SEO Chat Newbie (0 - 499 posts)
 
Join Date: Mar 2003
Posts: 438 thewatcher User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 7 h 6 m 58 sec
Reputation Power: 6
you dont need all the ---->

just this:

<STYLE TYPE="text/css">

A{text-decoration:none;}
A:hover{text-decoration:underline;}

A.set1:link {color: #FF9F51; background: #FFFFFF;}
A.set1:visited {color: #FF9F51; background: #FFFFFF;}
A.set1:active {color: #FF9F51; background: #FFFFFF;}

A.set2:link {color: #C9CAD9; background: #FFFFFF;}
A.set2:visited {color: #C9CAD9; background: #FFFFFF;}
A.set2:active {color: #C9CAD9; background: #FFFFFF;}

</STYLE>

Reply With Quote
  #5  
Old April 8th, 2003, 02:58 AM
digitalirony's Avatar
digitalirony digitalirony is offline
Contributing User
SEO Chat Newbie (0 - 499 posts)
 
Join Date: Feb 2003
Location: London
Posts: 122 digitalirony User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
use the comments, they prevent older browsers from barfing when they come across the inline style sheet however you only need to use them once e.g.

<STYLE TYPE="text/css">
<!--
A{text-decoration:none}
A:hover{text-decoration:underline;
A.set1:link {color: #FF9F51; background: #FFFFFF}
A.set1:visited {color: #FF9F51; background: #FFFFFF}
A.set1:active {color: #FF9F51; background: #FFFFFF}

A.set2:link {color: #C9CAD9; background: #FFFFFF}
A.set2:visited {color: #C9CAD9; background: #FFFFFF}
A.set2:active {color: #C9CAD9; background: #FFFFFF}
--> </STYLE>

Reply With Quote
Reply

Viewing: SEO Chat ForumsOtherSite Reviews > Could somone please review my 'style sheet' code?


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