×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: CSS
Posted by: Andrej Agovski
Added: Jul 3, 2014 11:40 AM
Views: 7
Вертикално центрирање на див во див
  1. .DivParent {
  2.     height: 100px;
  3.     border: 1px solid lime;
  4.     white-space: nowrap;
  5. }
  6. .DivWhichNeedToBeVerticallyAligned {
  7.     display: inline-block;
  8.     vertical-align: middle;
  9.     white-space: normal;
  10. }
  11. .DivHelper {
  12.     display: inline-block;
  13.     vertical-align: middle;
  14.     height:100%;
  15. }