Welcome to WebmasterWorld Guest from 54.146.217.179

Forum Moderators: not2easy

Message Too Old, No Replies

Text inside tables won't align properly

Please help with this CSS problem.

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

Junior Member

10+ Year Member

joined:Apr 30, 2002
posts:198
votes: 0


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)

Full Member

10+ Year Member

joined:Nov 5, 2001
posts:232
votes: 0


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)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:June 23, 2000
posts:1277
votes: 0


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)

Junior Member

10+ Year Member

joined:Apr 30, 2002
posts:198
votes: 0


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.