Jump to content
xisto Community
Sign in to follow this  
suicide1405241470

css: padding -top

Recommended Posts

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.

Share this post


Link to post
Share on other sites

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 csstd.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 :)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.