User:Pax/sandbox.css: Difference between revisions
< User:Pax
No edit summary |
No edit summary |
||
Line 4: | Line 4: | ||
} | } | ||
. | .portrait1 { | ||
display: block; | display: block; | ||
width: 100%; | width: 100%; |
Revision as of 07:00, 16 January 2021
.portraitcontainer { position: relative; width: 587px; } .portrait1 { 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%); }