View Full Version : CSS hates me


evalopez
08-21-2003, 06:56 PM
<!--

background-color: #999999;

A:link
{ text-decoration: value; none color:#FFFFFF; }
A:visited
{ text-decoration: value; none color:#FFFFFF; }
A:active
{ text-decoration: value; none color:#FFFFFF; }
A:hover
{ text-decoration: value; underline color:#FFFFFF;}

{ scrollbar-face-color : #999999;
scrollbar-highlight-color : #999999;
scrollbar-3dlight-color : #000000;
scrollbar-shadow-color : #000000;
scrollbar-darkshadow-color : #000000;
scrollbar-track-color : #999999;
scrollbar-arrow-color : #ffffff; }

-->


anyone know what's wrong? This is from an external style sheet.

jazzberry
08-21-2003, 07:06 PM
try this

<style type="text/css">
<!--
A:link
{ text-decoration: value; none color:#FFFFFF; }
A:visited
{ text-decoration: value; none color:#FFFFFF; }
A:active
{ text-decoration: value; none color:#FFFFFF; }
A:hover
{ text-decoration: value; underline color:#FFFFFF;}

body
{background-color: #999999;
scrollbar-face-color : #999999;
scrollbar-highlight-color : #999999;
scrollbar-3dlight-color : #000000;
scrollbar-shadow-color : #000000;
scrollbar-darkshadow-color : #000000;
scrollbar-track-color : #999999;
scrollbar-arrow-color : #ffffff; }
-->
</style>

evalopez
08-21-2003, 07:10 PM
nope. didn't work

jazzberry
08-21-2003, 07:18 PM
oops lol sorry here this SHOULD work :)

<style type="text/css">
<!--
A:link
{ text-decoration: none; color:#FFFFFF; }
A:visited
{ text-decoration: none; color:#FFFFFF; }
A:active
{ text-decoration: none; color:#FFFFFF; }
A:hover
{ text-decoration: underline; color:#FFFFFF;}

body
{background-color: #999999;
scrollbar-face-color : #999999;
scrollbar-highlight-color : #999999;
scrollbar-3dlight-color : #000000;
scrollbar-shadow-color : #000000;
scrollbar-darkshadow-color : #000000;
scrollbar-track-color : #999999;
scrollbar-arrow-color : #ffffff; }
-->
</style>

pb&j
08-21-2003, 07:20 PM
if these are on an external style sheet, take off the style tags and comment tags. otherwise the corrected coding goes like so...

<style type="text/css">
<!--
A {text-decoration:none; color:#ffffff;}

A:hover {text-decoration: underline;}

body
{background-color: #999999;
scrollbar-face-color : #999999;
scrollbar-highlight-color : #999999;
scrollbar-3dlight-color : #000000;
scrollbar-shadow-color : #000000;
scrollbar-darkshadow-color : #000000;
scrollbar-track-color : #999999;
scrollbar-arrow-color : #ffffff; }
-->
</style>

rwllms15
08-21-2003, 11:22 PM
My opinion probably doesn't count, but I am pretty sure it is more comprehendable to other browsers besides stupid IE if you do it this way:

<style type="text/css">
a {
text-decoration: none;
color: #ffffff;
}

a:hover {
text-decoration: underline;
}

body {
background-color: #999999;
scrollbar-face-color: #999999;
scrollbar-highlight-color: #999999;
scrollbar-3dlight-color: #000000;
scrollbar-shadow-color: #000000;
scrollbar-darkshadow-color: #000000;
scrollbar-track-color: #999999;
scrollbar-arrow-color: #ffffff;
}
</style>

Comment tags may present problems.

pb&j
08-22-2003, 08:27 AM
Originally posted by rwllms15
My opinion probably doesn't count, but I am pretty sure it is more comprehendable to other browsers besides stupid IE if you do it this way:

<style type="text/css">
a {
text-decoration: none;
color: #ffffff;
}

a:hover {
text-decoration: underline;
}

body {
background-color: #999999;
scrollbar-face-color: #999999;
scrollbar-highlight-color: #999999;
scrollbar-3dlight-color: #000000;
scrollbar-shadow-color: #000000;
scrollbar-darkshadow-color: #000000;
scrollbar-track-color: #999999;
scrollbar-arrow-color: #ffffff;
}
</style>

Comment tags may present problems.
isn't that what i had posted only without the comment tags?

the comment tags will have no ill effect on current browsers. they are present to unconfuse the older browser versions that do not understand css coding. thus they really aren't required, but can be used anyways.