ThomasStarck (Talk | contribs) |
ThomasStarck (Talk | contribs) |
||
Line 41: | Line 41: | ||
#box{ | #box{ | ||
position: relative; | position: relative; | ||
− | + | width: 50%; /* desired width */ | |
box-shadow: 0px 0px 40px 9px black; | box-shadow: 0px 0px 40px 9px black; | ||
margin: 0; | margin: 0; | ||
Line 49: | Line 49: | ||
content: ""; | content: ""; | ||
display: block; | display: block; | ||
− | padding- | + | padding-top: 56.25%; /* initial ratio of 1:1*/ |
} | } | ||
#content{ | #content{ |
Revision as of 18:31, 31 August 2018