tyrant
(new user )
Mon Feb 07 2005 11:25 AM
explanation of style sheet

can someone please explain this stylesheet?. i'm really new to style sheets, and i would really appriceate the help.

thanks in advance



.main {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 9px;
font-style: normal;
font-weight: bold;
color: #999999;
}
.formfields {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 9px;
font-style: normal;
color: #333333;
background-color: #666666;
border-top-width: 1px;
border-right-width: 1px;
border-bottom-width: 1px;
border-left-width: 1px;
border-top-style: solid;
border-right-style: solid;
border-bottom-style: solid;
border-left-style: solid;
border-top-color: #999999;
border-right-color: #999999;
border-bottom-color: #999999;
border-left-color: #999999;
cursor: crosshair;
}



ianm
(regular)
Mon Feb 07 2005 06:24 PM
Re: explanation of style sheet

In your html you will have a class rule something like <p class="main>text here</p>

When the browser gets to the class rule called main it knows to look at the style sheet and find the rule there by the .main code, it then adds the style rules set in that class, the bits in the style itself kind of speak for themselfves. Hope that is of use

Regards
Ian


Edited by ianm on 07/02/2005 18:24 (server time).



predator
(regular)
Mon Feb 07 2005 11:00 PM
Re: explanation of style sheet

for learning CSS, "cascading style sheets for dummies" is a good book -easy to understand and a good place to get started.
http://www.predatorconservation.com


Contact Us | Privacy statement Main website
Hitwise Top 10 Award Winner - Jan-Mar 2005

About us | Contact us | Link to us | Terms & Conditions | Privacy Policy
© Copyright IPC Media Limited, All rights reserved