serverman Posted June 16, 2008 Share Posted June 16, 2008 i forgot how to center <div> from css without centering the text Link to comment https://forums.phpfreaks.com/topic/110476-solved-center/ Share on other sites More sharing options...
rhodesa Posted June 16, 2008 Share Posted June 16, 2008 fixed width div? style="width:300px;margin:auto;" Link to comment https://forums.phpfreaks.com/topic/110476-solved-center/#findComment-566791 Share on other sites More sharing options...
TheFilmGod Posted June 17, 2008 Share Posted June 17, 2008 fixed width div? style="width:300px;margin:auto;" Better yet... -> <div class="center"> <p>DIV CONTENTS</p> </div> .center { margin: 0 auto; width: 300px; } Link to comment https://forums.phpfreaks.com/topic/110476-solved-center/#findComment-567612 Share on other sites More sharing options...
serverman Posted June 18, 2008 Author Share Posted June 18, 2008 thanks i just forgot Link to comment https://forums.phpfreaks.com/topic/110476-solved-center/#findComment-567965 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.