Click to See Complete Forum and Search --> : what does this mean?


valhala_90
06-10-2003, 05:11 AM
could anyone please tell me what the <div class="padTH"> command means?
thanks

Hester
06-10-2003, 05:49 AM
<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.

It might look like this:

.padTH {padding:10px;}

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.

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.

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.

Hope this helps.

valhala_90
06-10-2003, 06:27 AM
thanks thats a gret help