HTML CSS IMAGES LINKS | |||||||||||||||||||||||||
HTML → Cellpadding and cellspacing
Here is a simple table:
And here's the code: <table border="0"> Now let's add cellpadding to the table and look at the change:
Notice how the words have more space around them? That is the effect of CELLPADDING, and here is the code: <table border="1" cellpadding="10"> Now let's try CELLSPACING and look at the change:
Notice how the words have almost no space around them, but the gaps between the cells are wider? That is the effect of CELLSPACING, and here is the code: <table border="1" cellspacing="10"> The two attributes may be combined:
<table border="1" cellspacing="10" cellpadding="5"> You may also set a table's cellpadding/cellspacing to equal zero:
|
|||||||||||||||||||||||||
back ↑ |