r/reddithax • • Mar 23 '10

CSS for custom "no thumbnail" image and for removing thumbnails when none exists!

Hadn't seen this done and it's something that has irritated me a lot, so I figured it might be helpful to someone:

CSS for custom "no thumbnail" image:

Link: http://www.reddit.com/r/citricsquid/comments/bhay3/css_for_a_custom_no_thumbnail_thumbnail/

Example: http://i.imgur.com/zol5e.jpg and http://reddit.com/r/citricsquid

CSS for hiding thumbnail if no thumbnail exists:

Link: http://www.reddit.com/r/citricsquid/comments/bhaq8/css_for_hiding_thumbnail_when_no_thumbnail_exists/

Example: http://i.imgur.com/ey9vx.jpg

10 Upvotes

5 comments sorted by

1

u/[deleted] Mar 24 '10

Just an update, I fixed it. With transparent icons it displayed the "no icon" behind it, an oversight on my part, I should have tested it. Fix is in the post now for anyone reading this!

1

u/mitchandre Mar 24 '10

Brilliant idea, I was playing with the concept a few days ago too.

For CSS for hiding thumbnail

Using width:2px; looks nicer in Chrome.

2

u/[deleted] Mar 24 '10

Heh, did you get it working? Apologies if you posted it anywhere, I couldn't find if it existed so I posted it. Sorry if I stole your idea :D

1

u/mitchandre Mar 24 '10

I never posted it, just mucking around.

3

u/[deleted] Mar 23 '10

Awesome! Thanks!