Indenting in tables

  • Thread starter Thread starter grsode
  • Start date Start date
G

grsode

I have a style sheet that specifies a left margin of 12 px within my table.
However the first line does not indent. I have to press enter before typing
to get the indent. If I set a first-line indent of any amount the second
indent is still different. Can you help with this problem?
 
Please post the code and CSS you are using - it sounds like you should
be using padding in the table cell, not a margin. Is the first line in
a paragraph or directly typed in the cell? Is the indent defined for
the cell (td) or a paragraph (p)?
 
table { margin:0 12; font-family: verdana, arial, helvetica;
font-size: 10pt; color: #808000; text-align: left; line-height: 100%; }
Padding doesn't work as it also adds vertical space. The first line is
directly typed in the cell. The indent is defined for the table as above.
 
Should be
table { padding:0 12; font-family: verdana, arial, helvetica; font-size: 10pt; color: #808000; text-align: left; line-height:
100%; }


--

_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
_____________________________________________


| table { margin:0 12; font-family: verdana, arial, helvetica;
| font-size: 10pt; color: #808000; text-align: left; line-height: 100%; }
| Padding doesn't work as it also adds vertical space. The first line is
| directly typed in the cell. The indent is defined for the table as above.
|
| "Ronx" wrote:
|
| > Please post the code and CSS you are using - it sounds like you should
| > be using padding in the table cell, not a margin. Is the first line in
| > a paragraph or directly typed in the cell? Is the indent defined for
| > the cell (td) or a paragraph (p)?
| >
| > --
| > Ron Symonds - Microsoft MVP (FrontPage)
| > Reply only to group - emails will be deleted unread.
| >
| > http://www.rxs-enterprises.org/fp
| >
| >
| >
| >
| > | >
| > > I have a style sheet that specifies a left margin of 12 px within my table.
| > > However the first line does not indent. I have to press enter before typing
| > > to get the indent. If I set a first-line indent of any amount the second
| > > indent is still different. Can you help with this problem?
| >
| >
 
I would use:

td { padding:0 12; font-family: verdana, arial, helvetica; font-size:
10pt; color: #808000; text-align: left; line-height: 100%;}

Your CSS
table {margin:0 12;
does not affect the text in the table cells, but places the whole table
12px away from the page margin, though the rest will be inherited by the
text in the cells.
--
Ron Symonds - Microsoft MVP (FrontPage)
Reply only to group - emails will be deleted unread.

http://www.rxs-enterprises.org/fp
 
Back
Top