Thursday, May 12, 2005

Simple CSS Styling

create a .css file
for example
stylesheets/forms.css

include in it data with the following format:

prototype for an HTML object:

//TEXTAREA
//{
// FONT-FAMILY: Tahoma, Arial;
// FONT-SIZE: 10pt;
//}

-or-

custom style:

//.textareaBig
//{
// FONT-FAMILY: Tahoma, Arial;
// FONT-SIZE: 10pt;
// WIDTH: 400px;
// HEIGHT: 185px
//}

in your object you can use class="stylename" with the leading period dropped, for example: (replace curly braces with > and <)

{textarea class="textareaBig"}blah{/textarea}

Style properties are beyond the scope of this blog...

No comments:

Labels

Blog Archive

Contributors