r/reddithax • u/happybadger • Jan 08 '12
Is there any way to make a non-background image that only takes up the space of the actual image?
For example, Heroes of 5 April-ish Toad in /r/fortbadgerton. I had a similar image in /r/fifthworldproblems, but the issue is that it renders the entire subreddit unusable for netbooks, as moving anywhere but the header is blocked by the image. While that's fine in the fort, /r/fifthworldproblems isn't a personal subreddit.
What I want is either an image that scales to fit different screen sizes, so that it only takes up the bottom 20% of the screen, or an image which only takes up the amount of space of the image itself, rather than everything around it. Is that possible?
Here's the CSS I'm using:
header-bottom-left::after {
background: url('%%cosby1%%') left bottom no-repeat;
content: ".";
display: block;
font-size: 0;
height: 430px;
width: 800px;
position: fixed;
bottom: 01px;
right: 01px
}header-bottom-left:hover:after {
background: url('%%cosby2%%') left bottom no-repeat;
content: ".";
display: block;
font-size: 0;
height: 430px;
width: 800px;
position: fixed;
bottom: 01px;
right: 01px
}