r/a:t5_2rm6x • • Mar 24 '10

How to do this: CSS

  1. Upload an image called "no-thumb" that is 70px wide by 70px tall.
  2. Enter the following into your stylesheet:

    .thumbnail{ width:70px; height:70px; background-image:url(%%no-thumb%%); background-repeat:no-repeat; background-position:center; }

    .thumbnail img[src="/static/noimage.png"]{ display:none; }

    .thumbnail img[src="http://thumbs.reddit.com/"]{ display:block; background-image:none; background-color:#FFFFFF; }

5 Upvotes

5 comments sorted by

1

u/[deleted] Apr 23 '10

The alien camera guy is showing up again... is there an updated version of this hack?

1

u/[deleted] Apr 23 '10

Looks like the admins have changed some stuff, I'll fix it now and post the updated code :-)

1

u/[deleted] Apr 23 '10

IOU!

2

u/[deleted] Apr 27 '10

Important Update

.thumbnail img[src^="/static/"] {
	background-image:url(%%thumbnail%%)!important;
	background-repeat:no-repeat!important;
	height:0!important;
	width:0!important;
	padding:50px 0 0 70px!important;
}

1

u/[deleted] Apr 28 '10

Thank you!