Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
Trouble centering a table and text is off - Please Help!
Old 06-07-2009, 11:29 AM Trouble centering a table and text is off - Please Help!
Junior Talker

Posts: 3
Trades: 0
http://cghskc.700megs.com/sloppypolitics/

I can't seem to get the table centered and fix the text so it stays within it. Someone help me please!

Thanks,
Gil
Patriot427 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 06-07-2009, 11:34 AM Re: Trouble centering a table and text is off - Please Help!
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
Simple- set a width on the table - or the div that holds it.
You really should get away from the nasty tables for layout, that's soooo 1997

You also need to validate your code, you've got tons of errors.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 06-07-2009, 11:37 AM Re: Trouble centering a table and text is off - Please Help!
Junior Talker

Posts: 3
Trades: 0
LadynRed,

I have a width set on the table, I'm not sure why it's not working. And yeah, I'm going to validate it one I get it working.

Thanks for the reply,
Gil
Patriot427 is offline
Reply With Quote
View Public Profile
 
Old 06-07-2009, 11:39 AM Re: Trouble centering a table and text is off - Please Help!
Junior Talker

Posts: 3
Trades: 0
Oh, I got it. Thanks so much!
Patriot427 is offline
Reply With Quote
View Public Profile
 
Old 06-07-2009, 11:42 AM Re: Trouble centering a table and text is off - Please Help!
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
Sorry, I should have said - set the width in the CSS. If you apply a width to the div, then you can center it with margin: 0 auto; (change the zero to a margin value you want for top and bottom).
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 06-07-2009, 11:46 AM Re: Trouble centering a table and text is off - Please Help!
serandfae's Avatar
Do the "Evil Nanner" !!!

Posts: 9,007
Name: Tim Daily
Location: Apex, NC, US, Sol 3
Trades: 0
Wow. Well, first, you're using an XHTML DOCTYPE but using all caps on your css link and aren't self-closing it. You also have to self-close the br elements. That'll take care of some of the multiple validation errors.

Your table structure is spotty and uses a lot of deprecated code; given that, why not just learn more current code and abandon tables for layout?

Check the stickies for centering your layout; there are very good resources there.

tim
__________________
SEO "experts" smell like Big Fish_|_
Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

serandfae is offline
Reply With Quote
View Public Profile Visit serandfae's homepage!
 
Reply     « Reply to Trouble centering a table and text is off - Please Help!
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 1.63038 seconds with 12 queries