tim_ver Posted March 24, 2007 Share Posted March 24, 2007 I have this code below on my page and the text goes from the edge of the left to the right edge. I want it to be indented one inch on each side. centered will not work, I have tried it and it looks weird. This is what it looks like now: Test test test test...test This is what I am after: Test test test test...test This is my code: <tr> <td> <h3>About Us</h3> <p align="justify"><?=$cnt;?></p> <p> </p> </td> </tr> Thanks Link to comment https://forums.phpfreaks.com/topic/44072-about-page-test-issues-layout-problem/ Share on other sites More sharing options...
CoreyR Posted March 24, 2007 Share Posted March 24, 2007 personally, I would just do this. <? <table> <tr> <td> test test test</td> </tr> </table> ?> not sure if there is a better way, thats just how I do it. Link to comment https://forums.phpfreaks.com/topic/44072-about-page-test-issues-layout-problem/#findComment-214007 Share on other sites More sharing options...
JasonLewis Posted March 24, 2007 Share Posted March 24, 2007 what about padding? <tr> <td style="padding-left: 7px; padding-right: 7px"> <h3>About Us</h3> <p align="justify"><?=$cnt;?></p> <p> </p> </td> </tr> good luck. Link to comment https://forums.phpfreaks.com/topic/44072-about-page-test-issues-layout-problem/#findComment-214017 Share on other sites More sharing options...
tim_ver Posted March 24, 2007 Author Share Posted March 24, 2007 I just tried the padding and no luck. Stays the same. Ideas? Link to comment https://forums.phpfreaks.com/topic/44072-about-page-test-issues-layout-problem/#findComment-214051 Share on other sites More sharing options...
JasonLewis Posted March 24, 2007 Share Posted March 24, 2007 try it in the p tag without the align bit Link to comment https://forums.phpfreaks.com/topic/44072-about-page-test-issues-layout-problem/#findComment-214094 Share on other sites More sharing options...
tim_ver Posted March 24, 2007 Author Share Posted March 24, 2007 ok, I think I got it now. 7 was so slight I did not see it so I did 36 and it works nice now. Thanks Now I have to change another page which is more severe. Link to comment https://forums.phpfreaks.com/topic/44072-about-page-test-issues-layout-problem/#findComment-214106 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.