css: padding -top

free web hosting
Free Web Hosting > Computers & Tech > Designing > Web Design and HTML

css: padding -top

suicide
hello!
I have a table row, <tr>, in which i have 4 cells , <td>, in these cells i would like to have a text that starts exactly at the same position, hence i have a css that aligns the text td.top{padding-top:3px} , but this is not taken into account. each td is describes as follows <td class="top">, the text starts at different levels, depending on the amount of text.

Reply

r3d
try using some css tags for text like
vertical-align: top | text top | middle | bottom | text bottom ...
text-align: left | right | justify
setting the default font size might be helpfull too
and since you want it inside the table data you can set width and the height of that data and also set padding in the left side if you want it start from left or margin to some sides

here is an example css
td.text_menu { padding-left: 1em;
vertical-align: middle;
text-align: left:
width: 200px;
height: 40px; }
em { font-size: 80%;
font-family: Arial;
line-height: 3px; }

usage
<tr><td class="text_menu"><em>SOME TEXT</em></td>.......

hope it help something wink.gif

 

 

 


Reply


Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

(Maximum characters: 10,000)
You have characters left.

Similar Topics

Keywords : css padding


    Looking for css, padding, top






*SIMILAR VIDEOS*
Searching Video's for css, padding, top
advertisement




css: padding -top



 

 

 

 

ADD REPLY / Got an Opinion! a humble request :-) RAPID SEARCH! Free Hosting [X]
Express your Opinions, Thoughts or Contribute your information that might help someone here.
Ask your Doubts & Queries to get answers.. "Together, We enlight each other!"
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP.
500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE