CSS-Tricks is brought to you in part by Media Temple, the web hosting that we both use and recommend.
So.. Hi everyone, i am definitely a newbie when it comes to creating web pages, and I’m having a problem for centering a simple DIV in this new web page.
I want to center this DIV, both image and text. I’m using skeleton boilerplate.
Here is the HTML
And here is the CSS
margin: 0 auto;
I just want #panel centered, and hopefully, both image and h1 tag would respect the responsive queries by skeleton.
I apologize for the noobness in this questions..
You can’t center using margin:auto unless the element has a specified width or max-width.
You might try this…
You must be logged in to reply to this topic.
Search for Stuff
Browse the Archives
Get the Newsletter
... or get the RSS feed