The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Home › Forums › CSS › Div centering with Skeleton Boilerplate
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…