Page MenuHomePhabricator

Centering images with thumbnail in Simple skin
Closed, InvalidPublic

Description

Author: user.maxim

Description:
I'm having a problem centering images when it's a thumbnail when using the Simple skin: http://en.wikipedia.org/w/index.php?title=Raymore_Drive&oldid=312469478&useskin=simple

It's fine without the thumbnail: http://en.wikipedia.org/w/index.php?title=Raymore_Drive&oldid=312417329&useskin=simple

Now here's the kicker. The only browser I checked that in which this isn't a problem is IE. (Chrome, Opera, and Firefox are the other test browsers.)

Thanks a lot,

w:en:User:Maxim


Version: unspecified
Severity: normal

Details

Reference
bz20533

Event Timeline

bzimport raised the priority of this task from to Low.Nov 21 2014, 10:55 PM
bzimport set Reference to bz20533.
bzimport added a subscriber: Unknown Object (MLST).

herd wrote:

monobook/main.css has:

/* emulate center */
.center {

	width: 100%;
	text-align: center;

}
*.center * {

	margin-left: auto;
	margin-right: auto;

}

simple/main.css only has:

div.center {

text-align: center;

}

The second bit is needed for this behavior.

chinchi29 wrote:

What about other skins? Should those rules be moved to shared.css?

This is invalid now that the legacy skins have been removed (Ia6d73c2d).