User:Pax/sandbox.css: Difference between revisions
< User:Pax
No edit summary |
No edit summary |
||
Line 30: | Line 30: | ||
color: white; | color: white; | ||
font-size: 20px; | font-size: 20px; | ||
font-family: Josefin Sans; | |||
position: absolute; | position: absolute; | ||
top: 50%; | top: 50%; |
Revision as of 06:56, 16 January 2021
.portraitcontainer { position: relative; width: 587px; } .image { display: block; width: 100%; height: auto; } .portraitoverlay { position: absolute; top: 0; bottom: 0; left: 0; right: 0; height: 100%; width: 100%; opacity: 0; transition: .5s ease; background-color: #140E0A; } .portraitcontainer:hover .portraitoverlay { opacity: .8; } .portraittext { color: white; font-size: 20px; font-family: Josefin Sans; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); -ms-transform: translate(-50%, -50%); }