homepage Welcome to WebmasterWorld Guest from 54.211.73.232
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / Code, Content, and Presentation / CSS
Forum Library, Charter, Moderators: not2easy

CSS Forum

    
Text inside tables won't align properly
Please help with this CSS problem.
midi25

10+ Year Member



 
Msg#: 172 posted 9:43 pm on May 15, 2002 (gmt 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)

 

pcguru333

10+ Year Member



 
Msg#: 172 posted 9:48 pm on May 15, 2002 (gmt 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

JamesR

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 172 posted 9:54 pm on May 15, 2002 (gmt 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.

midi25

10+ Year Member



 
Msg#: 172 posted 9:59 pm on May 15, 2002 (gmt 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.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / CSS
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved