Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .aspect_parent{
- position:relative;
- }
- .aspect_parent{
- display:block;
- content:’’;
- padding-top:100%;/*正方形にしたい場合は100%*/
- }
- .aspect{
- position:absolute;
- top:0;
- left:0;
- right:0;
- bottom:0;
- margin:0 auto;
- }
Add Comment
Please, Sign In to add comment