html - Vertical align center in div -


i have code , cannot vertical align content in second div center.

<div style="min-height: 317px"> <!-- min div auto generated-->     <div class="verticalalign">         <h1>heading</h1>         <p>some text</p>     </div> </div> 

how css class .verticalalign must write vertical align center second div ?
parental div can't modify, generated theme shortcode.

i need horizontal text align in child div.

vertical-align works table elements only, so:

.fusion-column-wrapper {background: #eee; display: table; width: 100%;} .verticalalign {display: table-cell; vertical-align: middle; } 

http://jsfiddle.net/xcgjkm8v/

see valid value of vertical-align middle, not center.


Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -