Monday, January 15, 2007

Adjusting the table properties

The most common tweak to the table setting will be adjusting it to fit your space. Look for this line:

<table width="350" cellpadding="3" cellspacing="0" border="1">

The default width is 350 pixels. Change it to a smaller number to fit a smaller space.

Cellpadding is the number of pixels from the border that remains blank space. It keeps text from running right up against the borders. I recommend leaving it at 3.

Cellspacing is mostly irrelevant in this table because it has only one cell. Increasing the value will cause a decrease in the inside cell space. I recommend leaving it at 0.

Border is the width of the border in pixels. You can change it to higher numbers to give it a thicker border, or change it to 0 to get rid of the border line completely.


Post a Comment

<< Home