Center images

Center images
1
*****
Last updated Sep 20 2006
220 installs this week, 7860 total.

Horizontally centers image-only "pages".

Before
After

Install options

Feedback

Reviews

myf said on May 26 2008

This style sparked off several derived userstyles:
http://userstyles.org/styles/search/Center%20images?category=global *****

bugmenot2 said on May 20 2008

*****

Douglas Elias said on May 08 2008

very good :) *****

rude-dude said on May 01 2008

another brilliant idea like the blue about:blank page.
love it! *****

bugmenot1 said on Feb 05 2008

*****

PTB89 said on Jan 03 2008

*****

dedushka said on Dec 23 2007

it's great, thx! *****

bugmenot123 said on Oct 16 2007

*****

asyraf said on Oct 08 2007

*****

FatJohn said on Sep 18 2007

I'd also very much like to change the background color but don't know how to.

It's great. Love it. Thanks a lot np! *****

JuanBR said on Jul 03 2007

very good :) *****

THiC said on Jun 30 2007

Nice Work. *****

Dawudd said on Jan 23 2007

Any way to do this for SVG images? *****

Mickey said on Dec 24 2006

This is one of my favourite styles, I can honestly say that I cannot live without it.

But can anybody tell me how to make it center the images vertically as well? I tried to find a way myself, but obviously wasn't successful. *****

J.K. said on Dec 19 2006

Really enjoy this - Thanks! *****

ron said on Dec 19 2006

can anyone help how to center vertically too? and change background color to a nice grey? *****

ERlack$ said on Nov 19 2006

How can we change bg color? *****

troubled said on Nov 15 2006

works like magic *****

elder_ozone said on Sep 28 2006

Awesome. Would it be possible to vertically align too? *****

Stupid Head said on Sep 25 2006

*****

. said on Aug 30 2006

*****

Zathman said on Jul 10 2006

Good thinking!

pile0nades said on May 13 2006

This is awesome! I have filed a bug to include this: https://bugzilla.mozilla.org/show_bug.cgi?id=337882 *****

timendum said on Mar 24 2006

:) ****

Paweł Kubisz said on Mar 17 2006

grrrr8! - I think this should be part of resource://gre/res/html.css - but I'm not sure about selector "HTML > BODY:only-child " - dunno why but this "<html><body><img src="some_picture.jpg"></body></html>" is interpreted by browser as "<html><head></head><body><img src="some_picture.jpg"></body></html>" so this selector "body > img:only-child " is absolutely enough - I have modified my resource://gre/res/html.css *****