Template:Team:UC Davis/Head
From 2014.igem.org
(Difference between revisions)
Line 53: | Line 53: | ||
width: 300px; | width: 300px; | ||
float: left; | float: left; | ||
- | + | position: relative; - in .frame holds the absolute element within the frame | |
- | margin: | + | top: 0; bottom: 0; left: 0; right: 0; - this is key for centering a component |
+ | margin: auto; - centers the image horizontally & vertically | ||
} | } | ||
Revision as of 08:55, 22 September 2014