I just wanna center a div!
I just wanna center a div!
Out of context: Reply #7
- Started
- Last post
- 39 Responses
- Projectile0
@ abettertomorrow
no, not to the page. I want to center it to its surrounding div
so
<div background: url(imageofasquare.gif)>
<img logo.gif />
</div>the logo needs to be in the center of the square, which will be repeaded in a grid
- Stugoo's solution with display:table-cell looks promising. Or just extend the canvas size or all logos to the same...thatboyneave
- ... Same sizethatboyneave