Forum Moderators: not2easy

Message Too Old, No Replies

How to indent all words within a table

         

chopin2256

7:52 pm on Jul 22, 2005 (gmt 0)

10+ Year Member



I am trying to indent my writing within a table, table cell, etc. I tried doing it with the margin command, but thats not working. The problem with that was, it would indent the whole table rather than the typed words. Here is an example of how I tried to indent words within a table:

#bodytable
{
margin-right: 5px;
}

The idea is to indent all the words a little bit to the right of the table, so it doesn't look so close to the border. The above code doesn't work, all it does is move the table over from the screen instead of the words. Can anyone help?

D_Blackwell

7:56 pm on Jul 22, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Try {padding-right: 1em;}. From the edge, or border, of the box, margin gives you more space to the outside, padding gives you more space to the inside.

chopin2256

8:11 pm on Jul 22, 2005 (gmt 0)

10+ Year Member



Thanks, once again for your help :)