Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <style>
- #whitespace {
- display: inline-block;
- width:20%;
- height:auto;
- border: 3px double black;
- overflow: hidden; /* clip the excess when child gets bigger than parent */
- }
- #whitespace img {
- display: block;
- width:100%;
- height:auto;
- }
- #whitespace:hover img {
- filter: saturate(170%);
- </style>
- <div id="whitespace"><img src="imgurl"></div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement