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