Today's question : how do i vertically align that *#@$¤<ç~&# accordion in the very center of my page (align it vertically & horizontally)? here's the jsFiddle
相关问题
- Adding a timeout to a render function in ReactJS
-
Why does the box-shadow property not apply to a
- Add animation to jQuery function Interval
- jQuery hover to slide?
- Issue with star rating css
I just wrapped the whole accordion div in a 1x1 table and center aligned the table. Make the table width the same as the accordion width.
Try:
Result: http://jsfiddle.net/z6Zyj/2/.
If you want a CSS only solution, you must do something as:
Where
45px
is approximately half the height of your accordion and245px
is half the width of it.Result: http://jsfiddle.net/z6Zyj/3/.