×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: CSS
Posted by: Raul Liinev
Added: Oct 8, 2015 6:52 AM
Views: 10
Tags: center
Centering text in container
  1. .gallery-container .elem { cursor: pointer;}
  2.  
  3.     .gallery-container .elem .hover-overlay {display:none; width:100%; height:100%; position:absolute; color:#000000; background:rgba(255,255,255,0.7)}
  4.  
  5.     .gallery-container .elem .hover-table, .gallery-container .elem .hover-table tr, .gallery-container .elem .hover-table td {width:100%; height:100%}
  6.  
  7.     .gallery-container .elem .hover-table td {text-align: center; vertical-align: middle; font-size: 18px; padding:0px; padding:0px 10px; border:none; line-height: 1.4}