Open main menu

Bulbapedia β

Changes

User talk:TTEchidna/Archive Jan 09 1

2,402 bytes added, 14:15, 6 October 2009
m
subst:
== Images floating right confliction ==
 
{{Infobox| townborder="1" style="float:right; border: 1px solid #999; border-collapse:collapse; padding-left: 0.5en; padding-right: 0.5en; padding-top: 0px; padding-bottom: 0px; margin-left:1em; margin-bottom:1em; background: #ffffff;" width="300" align="right" id="table1"
|town=-
|characters align="center" colspan=2 style="background:#{{unknown color}};" | <big>'''-'''</big>
|japanese=-
|image align="center" colspan=2 style="background:#{{unknown color light}};"| '''-'''<br>''-''
|slogan- style=<br><br><br><br>"{{#if:-||display: none;}}"
|region align=<br><br><br><br>"center" colspan=2 | {{#if:-|[[Image:-|290x290px]]|}}
|routes- style="{{#if:<br><br><br><br>||display: none;}}"
|map align=Twinleaf"center" Towncolspan=2 Sign| Map.png''<br><br><br><br>''
}}|-
| align="center" colspan=2 style="background:#{{unknown color light}};" | '''Location info'''
|-
| '''[[Region]]'''
| [[<br><br><br><br>]]
|-
| valign="top" | '''Connecting [[List of routes in the Pokémon world|routes]]'''
| <br><br><br>
{{Infobox town/none|gymname={{{gymname}}}|colorlight=unkown color light|leader={{{leader}}}|badge={{{badge}}}|type={{{type}}}|elite1={{{elite1}}}|elite2={{{elite2}}}|elite3={{{elite3}}}|elite4={{{elite4}}}|champ={{{champ}}}}}
|-
| align="center" colspan=2 | [[image:Twinleaf Town Sign Map.png]]<br /><small>Location of - in [[<br><br><br><br>]].</small>
|-
!colspan=2 style="background:#{{unknown color light}};" | [[List of cities and towns by name|Cities and Towns]]
|}
<b><big>I</big></b>'ve noticed that images set to float right conflict with Infoboxes, and end up below the Infobox instead, while dragging all the "edit" links with them (except in IE), as well as anything else set to float left, which looks horrible. I've had a test play with the coding, and I think there's a clear or something somewhere within the Image template, so the only solution I can find to this is to contain the image (which must be set to position "none") in a manually coded div styled to float:right, thus restricting the clear in the Image to work only within the div, and the image will float right properly against the Infobox. Is there another way to fix this? Though it'd probably mean taking a look at and tampering with the source code for the Image: template.
 
 
{{-}}
{{Infobox| townborder="1" style="float:right; border: 1px solid #999; border-collapse:collapse; padding-left: 0.5en; padding-right: 0.5en; padding-top: 0px; padding-bottom: 0px; margin-left:1em; margin-bottom:1em; background: #ffffff;" width="300" align="right" id="table1"
|town=-
|characters align="center" colspan=2 style="background:#{{unknown color}};" | <big>'''-'''</big>
|japanese=-
|image align="center" colspan=2 style="background:#{{unknown color light}};"| '''-'''<br>''-''
|slogan- style=<br><br><br><br><br><br>"{{#if:-||display: none;}}"
|region align=<br><br><br><br>"center" colspan=2 | {{#if:-|[[Image:-|290x290px]]|}}
|routes=- style="{{#if:<br><br><br><br><br><br>||display: none;}}"
|map align=Twinleaf"center" Towncolspan=2 Sign| Map.png''<br><br><br><br><br><br>''
}}|-
| align="center" colspan=2 style="background:#{{unknown color light}};" | '''Location info'''
|-
| '''[[Region]]'''
| [[<br><br><br><br>]]
|-
| valign="top" | '''Connecting [[List of routes in the Pokémon world|routes]]'''
| -
{{Infobox town/none|gymname={{{gymname}}}|colorlight=unkown color light|leader={{{leader}}}|badge={{{badge}}}|type={{{type}}}|elite1={{{elite1}}}|elite2={{{elite2}}}|elite3={{{elite3}}}|elite4={{{elite4}}}|champ={{{champ}}}}}
|-
| align="center" colspan=2 | [[image:Twinleaf Town Sign Map.png]]<br /><small>Location of - in [[<br><br><br><br>]].</small>
|-
!colspan=2 style="background:#{{unknown color light}};" | [[List of cities and towns by name|Cities and Towns]]
|}
 
:<i>But look, image in floating right div inserted here <code><nowiki><div style="float:right; margin-left: 15px;">[[Image:Geckarbor_Sugimori1.png|thumb|none|100px|Huzzah, floats correctly!]]</div></nowiki></code></i>