Forum:Desgalitemplates problem

From Uncyclomedia, the UnMeta-wiki
Jump to: navigation, search
Forum: Home > Desgalitemplates problem
Many desgalinfoboxes are problems with code.

Hello, I need help to adjust the positioning of some templates I copied from Wikipedia. Unfortunately all have the classic problem: align="center"

Graziñas, Rhubella beach.jpgRhubella Marie, the rat sockpreppie 2,343 preppieditsRhubella.jpg 22:11, 25 August 2012 (UTC)

For right alignment, use:
    • float:right;
For central alignment, use:
    • <center> </center>
    • margin-left:auto; margin-right:auto;
    • text-align:center; (in some cases)

Implement in [[MediaWiki:Common.css]] this:

/* .left, .center and .right can be renamed in your language, like .esquerda, .centro, .direita - but mind the dot before it! */
.left {
float:left !important;
}
.center {
margin-left:auto !important;
margin-right:auto !important;
}
.right {
float:right !important;
/* Maybe adding some margin as well, like margin:2px 4px 2px 2px; (top, right, bottom, left)? You can remove this line though */
}

After this, you can use in the future on all the templates that use align="right" instead of that now: class="right", but when a template already uses a class, add it like this: class="iexistalready right" (separate with a space) or add it anyway by "hand". I could not make it much simpler. Greece and greets Roye7777777 ~ Talk 14:57, 26 August 2012 (UTC)

Galicia flag feito.png Feito!, although it was the last option (class="iexistalready right") with desirable outcome. Rhubella beach.jpgRhubella Marie, the rat sockpreppie 2,343 preppieditsRhubella.jpg 15:00, 5 September 2012 (UTC)

News

See: Forum talk:Desgalitemplates problem

Rhubella beach.jpgRhubella Marie, the rat sockpreppie 2,343 preppieditsRhubella.jpg