cleary71 Posted August 16, 2007 Share Posted August 16, 2007 I was wondering if someone could help me with centering a php file inside a table. The page is http://www.dancleary.com/feedback.php . Under the banner I was hoping to center the commment section. Any help would be greatly appreciated. Thanks! Quote Link to comment https://forums.phpfreaks.com/topic/65288-solved-help-with-centering-php-file/ Share on other sites More sharing options...
Asperon Posted August 16, 2007 Share Posted August 16, 2007 well, when you write the comment to the page I"m assuming you echo html, if that is the case you can just style it there. Quote Link to comment https://forums.phpfreaks.com/topic/65288-solved-help-with-centering-php-file/#findComment-326022 Share on other sites More sharing options...
cleary71 Posted August 18, 2007 Author Share Posted August 18, 2007 I am not sure what you mean. I was hoping to center the the whole block in relationship to the banner, not center every displayed line. It appears to be mostly centered, but off by a little to the left. Quote Link to comment https://forums.phpfreaks.com/topic/65288-solved-help-with-centering-php-file/#findComment-327816 Share on other sites More sharing options...
AndyB Posted August 19, 2007 Share Posted August 19, 2007 Looks all centered to me. If you're seeing something you think isn't centered then be specific about what it is. Quote Link to comment https://forums.phpfreaks.com/topic/65288-solved-help-with-centering-php-file/#findComment-327830 Share on other sites More sharing options...
cleary71 Posted August 19, 2007 Author Share Posted August 19, 2007 Assuming the banner is correctly centered, then looking at the highlighted boxes underneath, they appear to be off-centered to the left a bit. Quote Link to comment https://forums.phpfreaks.com/topic/65288-solved-help-with-centering-php-file/#findComment-327833 Share on other sites More sharing options...
pkSML Posted August 19, 2007 Share Posted August 19, 2007 I see what you mean that it's not centered exactly. I wouldn't have noticed otherwise, though. You could use CSS for <div id='tb-wrapper'> to give it a margin. #tb-wrapper { margin: 0px 0px 0px 20px; } /* The syntax is top, right, bottom, left */ You can toy around with that. Actually, I think the problem is with your table that holds everything beneath the header. Maybe make a table cell for each row that acts as a spacer. Quote Link to comment https://forums.phpfreaks.com/topic/65288-solved-help-with-centering-php-file/#findComment-327834 Share on other sites More sharing options...
AndyB Posted August 19, 2007 Share Posted August 19, 2007 http://www.digitalmidget.com/temp/center.jpg Perfectly in the middle when viewed with Firefox - I added the equal sized blue blocks Quote Link to comment https://forums.phpfreaks.com/topic/65288-solved-help-with-centering-php-file/#findComment-327842 Share on other sites More sharing options...
cleary71 Posted August 19, 2007 Author Share Posted August 19, 2007 Fixed!! Thanks!! Quote Link to comment https://forums.phpfreaks.com/topic/65288-solved-help-with-centering-php-file/#findComment-327847 Share on other sites More sharing options...
pkSML Posted August 19, 2007 Share Posted August 19, 2007 Great! Make sure to mark this topic as solved. Quote Link to comment https://forums.phpfreaks.com/topic/65288-solved-help-with-centering-php-file/#findComment-327852 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.