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 August 21st, 2003, 03:42 PM
shibby1011ph shibby1011ph is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2003
Location: PBC Clubhouse
Posts: 75 shibby1011ph User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 7 h 54 m 37 sec
Reputation Power: 6
Send a message via Yahoo to shibby1011ph
css doesn't work

below is my style.css file

<STYLE type="text/css">
.ivy{background-color:#E0E0E0;}
.required{font-family:"courier";font-size=10px;font-weight:bold;font-color:#AA0000;}
.selectTag_emp{font-family:"courier";font-width:400;font-weight:bold;font-color:#AA0000}
</STYLE>


below is my sample.html file

<TABLE BORDER=1 WIDTH="80%" CELLSPACING=0>
<TR>
<TD CLASS="ivy">
<%= sFirstName+" "+sLastName%>
</TD>
</TR>
</TABLE>

i don't understand why my css doesn't work? i've been checking my syntax and everythine seems to be ok. pls help thanks!

Reply With Quote
  #2  
Old August 21st, 2003, 03:47 PM
PHP-Newb PHP-Newb is offline
Bad Coder
Dev Shed Intermediate (1500 - 1999 posts)
 
Join Date: Jul 2003
Posts: 1,707 PHP-Newb User rank is First Lieutenant (10000 - 20000 Reputation Level)PHP-Newb User rank is First Lieutenant (10000 - 20000 Reputation Level)PHP-Newb User rank is First Lieutenant (10000 - 20000 Reputation Level)PHP-Newb User rank is First Lieutenant (10000 - 20000 Reputation Level)PHP-Newb User rank is First Lieutenant (10000 - 20000 Reputation Level)PHP-Newb User rank is First Lieutenant (10000 - 20000 Reputation Level)PHP-Newb User rank is First Lieutenant (10000 - 20000 Reputation Level)PHP-Newb User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 1 Week 5 Days 2 h 7 m 7 sec
Reputation Power: 152
Quote:
font-size=10px

Reply With Quote
  #3  
Old August 21st, 2003, 06:07 PM
fathomgringo fathomgringo is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2003
Posts: 26 fathomgringo User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
If you are saying that your style.css file is a seperate file from the .html file, REMOVE the opening and closing <style> tags. They are not required in the style sheet.

Then, in the <head> tag of your .html file, link to the style sheet.

<link rel="stylesheet" type="text/css" href="your_path/your_style_sheet.css" />

...also, you need to fix that font size rule.

Last edited by fathomgringo : August 21st, 2003 at 06:09 PM.

Reply With Quote
  #4  
Old August 21st, 2003, 06:20 PM
jerom jerom is offline
Contributing User
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: May 2003
Posts: 1,014 jerom User rank is Corporal (100 - 500 Reputation Level)jerom User rank is Corporal (100 - 500 Reputation Level)jerom User rank is Corporal (100 - 500 Reputation Level)jerom User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 1 Day 16 h 56 m 5 sec
Reputation Power: 9
Besides the 'font-size=' error:
.font-color is invalid; you probably mean to say: color
.underscores are not allowed in class names; a hyphen - is allowed

Please check with the W3C CSS Validator (saves a lot of time):
http://jigsaw.w3.org/css-validator/validator-text.html

Jeroen

Reply With Quote
  #5  
Old August 22nd, 2003, 09:54 AM
shibby1011ph shibby1011ph is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2003
Location: PBC Clubhouse
Posts: 75 shibby1011ph User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 7 h 54 m 37 sec
Reputation Power: 6
Send a message via Yahoo to shibby1011ph
thanks!!!!

it works!!!!

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignCSS Help > css doesn't work


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