| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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 } |
|
#2
|
||||
|
||||
|
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 |
|
#3
|
|||
|
|||
|
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 |
|
#4
|
||||
|
||||
|
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> |
|
#5
|
|||
|
|||
|
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.
|
|
#6
|
||||
|
||||
|
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;
}
|
|
#7
|
||||
|
||||
|
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) |
|
#8
|
||||
|
||||
|
Dude, is that you?
![]()
__________________
Look! Its a ShemZilla ![]() ![]()
|
|
#9
|
||||
|
||||
|
Alright, something's case-sensitive...isn't XHTML?
__________________
www.xoise.com - www.ourfreegames.com - www.playtouchgames.com - www.randomtools.net - www.xenocide-rpg.com |
|
#10
|
||||
|
||||
|
Quote:
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. |
|
#11
|
||||
|
||||
|
Quote:
There is only one man who knows that much about CSS here ![]() Welcome back ![]() |
|
#12
|
|||
|
|||
|
Quote:
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. |
|
#13
|
||||
|
||||
|
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)
|
![]() |
| Viewing: ASP Free Forums > Web Design > Web Layout > text |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |