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 Quote Link to comment 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. Quote Link to comment 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. Quote Link to comment 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? Quote Link to comment 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 Quote Link to comment 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. Quote Link to comment 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.