Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Indent a table or td or tr 3

Status
Not open for further replies.
Nov 18, 2005
43
US
Hi can anyone give me an example on how to indent a row in a table. Or maybe the entire table like a quater of an inch.

table{indent: 2em;}

do you think that will work?
 
try giving it a left margin:
Code:
table {
   margin-left:2em;
}

-kaht

How much you wanna make a bet I can throw a football over them mountains?
sheepico.jpg
 
Thank you that indented the entire table. Now could I apply a class to indent only 1 row?

something like this:

css
#indent {margin-left: 1em;}



<td class="indent">data</td>

That seems to have no effect on the tag.
 
change your css to:

Code:
.indent {margin-left: 1em;}

. is class - it can be applied to many elements. # is id, it can be applied to only one element.



*cLFlaVA
----------------------------
[tt]I already made like infinity of those at scout camp...[/tt]
[URL unfurl="true"]http://www.coryarthus.com/[/url]
[banghead]
 
Seems to be working but only the first line. I would like all the text in the <td> tag to be indent a bit.

I have tried anything.

Would wrapping or floating help me out?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top