Dysan Posted February 22, 2008 Share Posted February 22, 2008 Hi, How do I centre a div, and always keep a 18px gap at the top of the page (before content start) when the browser window is resized? Quote Link to comment Share on other sites More sharing options...
TheFilmGod Posted February 22, 2008 Share Posted February 22, 2008 #unique_id { margin: 18px auto 0 auto; } <div id="unique_id">Content</div> 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.