1 okt 2013 15.10 Chris Rockwell:

> If absolute positioning is an option, a simple, clean way is:
> 
> .centeredElement {
>   position: absolute;
>   margin: 0 auto;
>   left: 0;
>   right: 0;
>   top: 0;
>   bottom: 0;
>   height: 300px;
>   width: 300px;
> }
> 
> http://codepen.io/chrisrockwell/pen/Ffjul

But here there's no vertical centering going on?
______________________________________________________________________
css-discuss [css-d@lists.css-discuss.org]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to