common.css

#parent-container { width: 100%; height: 300px; } #parent-container:before { content: ''; display: inline-block; height: 100%; vertical-align: middle; } #child-container { display: inline-block; vertical-align: middle; width: 99%; }
v-align-multy-text-dysplay-inline-block

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.