Web Layout
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsWeb DesignWeb Layout

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 ASP Free Forums Sponsor:
  #1  
Old May 20th, 2005, 11:09 AM
tib tib is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: May 2005
Posts: 7 tib User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 6 m 30 sec
Reputation Power: 0
text

Hi I have this code in my css and it doesn't change the colour of the text,
is there anything that I should check? Thanks

TD.m4
{
FONT-WEIGHT: bold;
FONT-SIZE: 11px;
COLOR: #003366;
LINE-HEIGHT: 10px;
FONT-FAMILY: Verdana,Arial,Times;
TEXT-DECORATION: none
}

Reply With Quote
  #2  
Old May 20th, 2005, 11:54 AM
mehere's Avatar
mehere mehere is offline
Senior Sarcasm Wizardess
Click here for more information.
 
Join Date: Feb 2005
Location: Dreamland
Posts: 12,789 mehere User rank is General 9th Grade (Above 100000 Reputation Level)mehere User rank is General 9th Grade (Above 100000 Reputation Level)mehere User rank is General 9th Grade (Above 100000 Reputation Level)mehere User rank is General 9th Grade (Above 100000 Reputation Level)mehere User rank is General 9th Grade (Above 100000 Reputation Level)mehere User rank is General 9th Grade (Above 100000 Reputation Level)mehere User rank is General 9th Grade (Above 100000 Reputation Level)mehere User rank is General 9th Grade (Above 100000 Reputation Level)mehere User rank is General 9th Grade (Above 100000 Reputation Level)mehere User rank is General 9th Grade (Above 100000 Reputation Level)mehere User rank is General 9th Grade (Above 100000 Reputation Level)mehere User rank is General 9th Grade (Above 100000 Reputation Level)mehere User rank is General 9th Grade (Above 100000 Reputation Level)mehere User rank is General 9th Grade (Above 100000 Reputation Level)mehere User rank is General 9th Grade (Above 100000 Reputation Level)mehere User rank is General 9th Grade (Above 100000 Reputation Level)  Folding Points: 10976 Folding Title: Novice Folder
Time spent in forums: 4 Months 3 Weeks 6 Days 22 h 25 m 4 sec
Reputation Power: 1567
Are you doing this to your <td> element?
ie:
<td class="m4">
__________________
Come JOIN the party!!!

Quote of the Month:
Sacrifice (Temple): All we ask here is that you give us your heart.

Questions to Ponder:
If the #2 pencil is the most popular, why is it still #2?

iif([sarcasm]=true,iif([you have to ask]=true,"didn't work","ha ha ha"),"not sarcasm")
copyright© 2008 sbenj69

Reply With Quote
  #3  
Old May 20th, 2005, 01:03 PM
tib tib is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: May 2005
Posts: 7 tib User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 6 m 30 sec
Reputation Power: 0
sorry i have an "a" one too and i think this is the one not working

Code:
a.m4
{
	FONT-WEIGHT: bold;
	FONT-SIZE: 11px;
	COLOR: #003366;
	LINE-HEIGHT: 10px;
	FONT-FAMILY: Verdana,Arial,Times
}


then i use < a class = "m4" href= "link">link</a>
Thanks for the help

Reply With Quote
  #4  
Old May 20th, 2005, 01:09 PM
mehere's Avatar
mehere mehere is offline
Senior Sarcasm Wizardess
Click here for more information.
 
Join Date: Feb 2005
Location: Dreamland
Posts: 12,789 mehere User rank is General 9th Grade (Above 100000 Reputation Level)mehere User rank is General 9th Grade (Above 100000 Reputation Level)mehere User rank is General 9th Grade (Above 100000 Reputation Level)mehere User rank is General 9th Grade (Above 100000 Reputation Level)mehere User rank is General 9th Grade (Above 100000 Reputation Level)mehere User rank is General 9th Grade (Above 100000 Reputation Level)mehere User rank is General 9th Grade (Above 100000 Reputation Level)mehere User rank is General 9th Grade (Above 100000 Reputation Level)mehere User rank is General 9th Grade (Above 100000 Reputation Level)mehere User rank is General 9th Grade (Above 100000 Reputation Level)mehere User rank is General 9th Grade (Above 100000 Reputation Level)mehere User rank is General 9th Grade (Above 100000 Reputation Level)mehere User rank is General 9th Grade (Above 100000 Reputation Level)mehere User rank is General 9th Grade (Above 100000 Reputation Level)mehere User rank is General 9th Grade (Above 100000 Reputation Level)mehere User rank is General 9th Grade (Above 100000 Reputation Level)  Folding Points: 10976 Folding Title: Novice Folder
Time spent in forums: 4 Months 3 Weeks 6 Days 22 h 25 m 4 sec
Reputation Power: 1567
If you have the space in there, like your example shows, between the '<' and the 'a' you need to remove it. Otherwise, this works fine for me.

<a href="link" class="m4">link</a>

Reply With Quote
  #5  
Old May 20th, 2005, 01:59 PM
Kokoro Kokoro is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: May 2005
Posts: 6 Kokoro User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 18 m 14 sec
Reputation Power: 0
Also (and this is off-topic), don't forget the end style tags after your CSS defs, it won't give you an error, but it will screw up, again, this is off-topic but it's handy to remember when you get quirky errors like that.

Reply With Quote
  #6  
Old May 21st, 2005, 12:59 AM
baseballdude_'s Avatar
baseballdude_ baseballdude_ is offline
Expert Learner
ASP Free Intermediate (1500 - 1999 posts)
 
Join Date: Feb 2005
Location: Wisconsin
Posts: 1,877 baseballdude_ User rank is Second Lieutenant (5000 - 10000 Reputation Level)baseballdude_ User rank is Second Lieutenant (5000 - 10000 Reputation Level)baseballdude_ User rank is Second Lieutenant (5000 - 10000 Reputation Level)baseballdude_ User rank is Second Lieutenant (5000 - 10000 Reputation Level)baseballdude_ User rank is Second Lieutenant (5000 - 10000 Reputation Level)baseballdude_ User rank is Second Lieutenant (5000 - 10000 Reputation Level)baseballdude_ User rank is Second Lieutenant (5000 - 10000 Reputation Level)  Folding Points: 22104 Folding Title: Starter FolderFolding Points: 22104 Folding Title: Starter Folder
Time spent in forums: 1 Week 5 Days 11 h 49 m 2 sec
Reputation Power: 62
Send a message via AIM to baseballdude_ Send a message via MSN to baseballdude_ Send a message via Yahoo to baseballdude_ Send a message via Google Talk to baseballdude_
If I remember correctly, CSS/XHTML is case-sensitive. Also, don't forget a generic font-family as a last alternative.

Code:
a.m4 {
 	font-weight: bold;
 	font-size: 11px;
 	color: #036;
 	line-height: 10px;
 	font-family: Verdana, Sans-Serif, Serif;
 }

Reply With Quote
  #7  
Old May 25th, 2005, 04:49 PM
Phoenix's Avatar
Phoenix Phoenix is offline
Web-Standards Evangelist
ASP Free Intermediate (1500 - 1999 posts)
 
Join Date: Nov 2003
Posts: 1,522 Phoenix User rank is Corporal (100 - 500 Reputation Level)Phoenix User rank is Corporal (100 - 500 Reputation Level)Phoenix User rank is Corporal (100 - 500 Reputation Level)Phoenix User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 4 Days 23 h 48 m 4 sec
Reputation Power: 8
baseballdude: CSS properties aren't case sensitive, but the property values are.

Whilst it isn't exactly "wrong" to use upper-case attributes (indeed, it can actually make spotting the difference between a value and a property in an editor that doesn't provide syntax coloring easier) but the official spec does recommend that you use lower-case property names (at least AFAIK)

Reply With Quote
  #8  
Old May 26th, 2005, 03:16 AM
nofriends's Avatar
nofriends nofriends is offline
Senior Water Wizard
ASP Free God 11th Plane (10000 - 10499 posts)
 
Join Date: Aug 2004
Location: Cape Town, RSA
Posts: 10,181 nofriends User rank is Brigadier General (60000 - 70000 Reputation Level)nofriends User rank is Brigadier General (60000 - 70000 Reputation Level)nofriends User rank is Brigadier General (60000 - 70000 Reputation Level)nofriends User rank is Brigadier General (60000 - 70000 Reputation Level)nofriends User rank is Brigadier General (60000 - 70000 Reputation Level)nofriends User rank is Brigadier General (60000 - 70000 Reputation Level)nofriends User rank is Brigadier General (60000 - 70000 Reputation Level)nofriends User rank is Brigadier General (60000 - 70000 Reputation Level)nofriends User rank is Brigadier General (60000 - 70000 Reputation Level)nofriends User rank is Brigadier General (60000 - 70000 Reputation Level)nofriends User rank is Brigadier General (60000 - 70000 Reputation Level)nofriends User rank is Brigadier General (60000 - 70000 Reputation Level)nofriends User rank is Brigadier General (60000 - 70000 Reputation Level)  Folding Points: 97791 Folding Title: Advanced FolderFolding Points: 97791 Folding Title: Advanced FolderFolding Points: 97791 Folding Title: Advanced FolderFolding Points: 97791 Folding Title: Advanced FolderFolding Points: 97791 Folding Title: Advanced Folder
Time spent in forums: 3 Months 2 Weeks 2 Days 7 h 19 m 32 sec
Reputation Power: 699
Dude, is that you?
__________________
Look! Its a ShemZilla



Reply With Quote
  #9  
Old May 30th, 2005, 01:06 AM
baseballdude_'s Avatar
baseballdude_ baseballdude_ is offline
Expert Learner
ASP Free Intermediate (1500 - 1999 posts)
 
Join Date: Feb 2005
Location: Wisconsin
Posts: 1,877 baseballdude_ User rank is Second Lieutenant (5000 - 10000 Reputation Level)baseballdude_ User rank is Second Lieutenant (5000 - 10000 Reputation Level)baseballdude_ User rank is Second Lieutenant (5000 - 10000 Reputation Level)baseballdude_ User rank is Second Lieutenant (5000 - 10000 Reputation Level)baseballdude_ User rank is Second Lieutenant (5000 - 10000 Reputation Level)baseballdude_ User rank is Second Lieutenant (5000 - 10000 Reputation Level)baseballdude_ User rank is Second Lieutenant (5000 - 10000 Reputation Level)  Folding Points: 22104 Folding Title: Starter FolderFolding Points: 22104 Folding Title: Starter Folder
Time spent in forums: 1 Week 5 Days 11 h 49 m 2 sec
Reputation Power: 62
Send a message via AIM to baseballdude_ Send a message via MSN to baseballdude_ Send a message via Yahoo to baseballdude_ Send a message via Google Talk to baseballdude_
Alright, something's case-sensitive...isn't XHTML?

Reply With Quote
  #10  
Old May 30th, 2005, 07:59 AM
Phoenix's Avatar
Phoenix Phoenix is offline
Web-Standards Evangelist
ASP Free Intermediate (1500 - 1999 posts)
 
Join Date: Nov 2003
Posts: 1,522 Phoenix User rank is Corporal (100 - 500 Reputation Level)Phoenix User rank is Corporal (100 - 500 Reputation Level)Phoenix User rank is Corporal (100 - 500 Reputation Level)Phoenix User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 4 Days 23 h 48 m 4 sec
Reputation Power: 8
Quote:
Originally Posted by baseballdude_
Alright, something's case-sensitive...isn't XHTML?


Class names, element IDs, XHTML element names, attributes, and attribute values, and CSS property values are all case-sensitive.

Note that IE ignores case for virtually everything. Except element IDs (IIRC) and some CSS property values.

Reply With Quote
  #11  
Old May 30th, 2005, 08:41 AM
nofriends's Avatar
nofriends nofriends is offline
Senior Water Wizard
ASP Free God 11th Plane (10000 - 10499 posts)
 
Join Date: Aug 2004
Location: Cape Town, RSA
Posts: 10,181 nofriends User rank is Brigadier General (60000 - 70000 Reputation Level)nofriends User rank is Brigadier General (60000 - 70000 Reputation Level)nofriends User rank is Brigadier General (60000 - 70000 Reputation Level)nofriends User rank is Brigadier General (60000 - 70000 Reputation Level)nofriends User rank is Brigadier General (60000 - 70000 Reputation Level)nofriends User rank is Brigadier General (60000 - 70000 Reputation Level)nofriends User rank is Brigadier General (60000 - 70000 Reputation Level)nofriends User rank is Brigadier General (60000 - 70000 Reputation Level)nofriends User rank is Brigadier General (60000 - 70000 Reputation Level)nofriends User rank is Brigadier General (60000 - 70000 Reputation Level)nofriends User rank is Brigadier General (60000 - 70000 Reputation Level)nofriends User rank is Brigadier General (60000 - 70000 Reputation Level)nofriends User rank is Brigadier General (60000 - 70000 Reputation Level)  Folding Points: 97791 Folding Title: Advanced FolderFolding Points: 97791 Folding Title: Advanced FolderFolding Points: 97791 Folding Title: Advanced FolderFolding Points: 97791 Folding Title: Advanced FolderFolding Points: 97791 Folding Title: Advanced Folder
Time spent in forums: 3 Months 2 Weeks 2 Days 7 h 19 m 32 sec
Reputation Power: 699
Quote:
Originally Posted by Phoenix
Class names, element IDs, XHTML element names, attributes, and attribute values, and CSS property values are all case-sensitive.

Note that IE ignores case for virtually everything. Except element IDs (IIRC) and some CSS property values.

There is only one man who knows that much about CSS here
Welcome back

Reply With Quote
  #12  
Old June 14th, 2005, 09:40 AM
autisim_rocks autisim_rocks is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Mar 2005
Posts: 10 autisim_rocks User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 29 m
Reputation Power: 0
Quote:
Originally Posted by nofriends
There is only one man who knows that much about CSS here
Welcome back



Its my experience that CSS tags are case sensitive on MAC IE only. Still - its always better to standardize the way you do things. After my little run in with case sensitive CSS i have only written my CSS in lowercase.

Reply With Quote
  #13  
Old June 14th, 2005, 11:04 AM
Phoenix's Avatar
Phoenix Phoenix is offline
Web-Standards Evangelist
ASP Free Intermediate (1500 - 1999 posts)
 
Join Date: Nov 2003
Posts: 1,522 Phoenix User rank is Corporal (100 - 500 Reputation Level)Phoenix User rank is Corporal (100 - 500 Reputation Level)Phoenix User rank is Corporal (100 - 500 Reputation Level)Phoenix User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 4 Days 23 h 48 m 4 sec
Reputation Power: 8
You shouldn't be developing for Tasman (Mac IE) anymore, not since Safari at least. Mac IE is now unsupported and my website (which gets upwards of 300,000 visitors a day) only about 0.05% are from Mac IE (there are other Tasman-based programs, but Mac IE and Entourage 2004 are the biggest)

Reply With Quote
Reply

Viewing: ASP Free ForumsWeb DesignWeb Layout > text


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread