PDA

View Full Version : Style sheets


ScottInTexas
12-08-2002, 04:06 PM
I seem to have a problem building and using style sheets. I am building a table of tables and want individual cells on the tables to be displayed using certain styles. In my head I have

<link rel="StyleSheet" href="Styles.css" type="text/css">


and I am using it in the cells like this.

bigTxt+="<TD class='aDay'> + thisDay + "</TD>"


My style sheet is written like this

<STYLE TYPE="text/css">
<!--

.aDay{
font-family:Verdana;
font-size:8;
border-style:groove;
cellspacing:1;
cellpadding:1;
border-width:1px;
cursor:pointer;
cursor:hand;
}

.aMonth{
padding-top: 0;
font-size:11;
font-wieght:400;
font-family:verdana;
background-Color: #05a539;
}
-->
</style>


Thanks for looking.

Borgtex
12-08-2002, 06:09 PM
You can't use tags in a .css file. Remove:

<STYLE TYPE="text/css">
<!--



-->
</style>

and see if it works

ScottInTexas
12-08-2002, 06:32 PM
Not only that but I also had to name the file with a .css extension. My editor defaulted the extension to html and I didn't see it.

Works great.

Thanks for your help.

cg9com
12-09-2002, 07:53 AM
editors are your enemy *grin*