what does this mean?

windows

Guest
could anyone please tell me what the <div class="padTH"> command means?<br />
thanks<!--content--><div class="padTH"> means that everything inside the div tag has a unique style. The style is called "padTH". There will be a stylesheet linked to at the top of the page, or it could be written out between <style> tags. Either way, there will be an entry for the "padTH" style.<br />
<br />
It might look like this:<br />
<br />
.padTH {padding:10px;}<br />
<br />
The fullstop relates to the word "class". A class is a style you can apply to more than one thing on a page. In the example you give, it means the content of the div will have the style applied - in the example above, that will be an extra 10 pixels of padding.<br />
<br />
Using classes designers can control any element on a page - even the <body> tag! It saves repeating the code in the page, as the class only has to be defined once, in the stylesheet.<br />
<br />
If you copy the link to the stylesheet from the page, it will open up in the browser so you can have a look at the styles.<br />
<br />
Hope this helps.<!--content-->thanks thats a gret help<!--content-->
 
Back
Top