Welcome to WebmasterWorld Guest from 54.145.207.36

Forum Moderators: not2easy

Text inside tables won't align properly

Please help with this CSS problem.

   
9:43 pm on May 15, 2002 (gmt 0)

10+ Year Member



Hi i have sorted my fonts out and am using 12px. I have centered my fonts in CSS but i am having a problem where they do not align correctly top to bottom. ie there is more space at the bottom in my table than the top. What attrib can i apply in CSS to correct this. I am using Go Live. my url is <no personal urls please> Its the text in the right handside brown table. I want it to be evenly spaced top and bottom.

Thanks

(edited by: tedster at 3:45 am (utc) on May 16, 2002)

9:48 pm on May 15, 2002 (gmt 0)

10+ Year Member



I am guessing on what your issue is, don't have time to hit the URL

If you have a slight gap in a table cell you need to place the cells side-by-side in your code.

Instead of
<table>
<tr>
<td>text</td>
<td>more</td>
<tr>
</table>

try this
<table>
<tr>
<td>text</td><td>more</td>
<tr>
</table>

Course you could use CSS to replace your tables as well

9:54 pm on May 15, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Is it because you defined the height of that cell? Try using pt instead of px for the fonts and getting rid of the height statement. Also maybe use a paragraph instead of the <h6>, the heading might be what is causing the extra space.
9:59 pm on May 15, 2002 (gmt 0)

10+ Year Member



Ok thank. PC guru was right thought i dont really need the table for what i am doing. CSS can do the borders just as well. Have done it now. Thanks guys.
 

Featured Threads

Hot Threads This Week

Hot Threads This Month