dan_t Posted November 30, 2008 Share Posted November 30, 2008 I am trying to center my sites shell without centering the text inside. Any right ways? Every time I try, no matter what way, it centers all the text inside. It even centers my nav bar, which looks terrible centered. Any ideas would help. Thanks Dan Link to comment https://forums.phpfreaks.com/topic/134805-solved-centering/ Share on other sites More sharing options...
ToonMariner Posted November 30, 2008 Share Posted November 30, 2008 give your body tag a width value (either fixed or relative) and give it margin: x auto; where x is the top ad bottom margin you wish to apply. Link to comment https://forums.phpfreaks.com/topic/134805-solved-centering/#findComment-701992 Share on other sites More sharing options...
dan_t Posted November 30, 2008 Author Share Posted November 30, 2008 give your body tag a width value (either fixed or relative) and give it margin: x auto; where x is the top ad bottom margin you wish to apply. That worked great!! Thanks very much. That really helped! Dan Link to comment https://forums.phpfreaks.com/topic/134805-solved-centering/#findComment-702000 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.