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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

indenting text vertically in a table or <div>

Status
Not open for further replies.

jkris

Programmer
Jun 12, 2003
13
0
0
IN
hi there,

how can i position the text in a table or a div tag vertically, to indent horizontally we can use say,
text-indent:5px, in the style sheet, is there any similar style to postion vertically, say i want the text 5px from the top.
I can't use margin-top:5px, coz I have a background image n that will also be displaced downwards by 5px. I need a code which wud specifically indent the text alone, vertically, can any1 help me pls?

Thanx in advance..


regards,
JK
 
Not sure, but would padding-top work?

Adam
while(woman.width>woman.height && wallet.value>0){beer++;vision.blur()};
 
thanx adam,

padding does the trick


regards,
JK
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top