how to define this style sheet

hi

i want to define a style sheet for my tables

but the cellpadding and cellspacing are not working

what i did is

table.style1
{
BACKGROUND-COLOR:"#ffffff";
border-style: solid;
border-color: black;
border-width: 1;
cell-SPACING: 1pt;
padding: 0
}

but the problem is the cell-spacing and the padding are not doing any effect

Comments

  • becoz u didn't define the width of the cell or the cell that contain the longest content inside it.

    cell padding only have effect if the width of the cell longer the the length of the content, becoz the cell width is dynamic in nature.

    all cell width is allocated to fit the longest element in ur table.

    so, u either make the cell width fixed or u have a longer element.

    [code]
    e.g

    123456789
    123

    or
    123

    or u can set the width in the style sheet
    [/code]
    then, the cell have 123 will have cell padding and other stuffs work.

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

In this Discussion