Template talk:Keyboard: Difference between revisions

From PS3 Developer wiki
Jump to navigation Jump to search
m (this)
mNo edit summary
Line 7: Line 7:


<div style="float:left; width:100%; margin-top:2px; margin-bottom:2px; clear:both; border:1px solid #e0e0e0;">
<div style="float:left; width:100%; margin-top:2px; margin-bottom:2px; clear:both; border:1px solid #e0e0e0;">
  <div style="float:left; padding-left:2px; padding-right:2px;">[[image:64px-Keyboard.png|x64px|link=|Type This]]</div>{{#tag:pre|{{#tag:pre|xxxxxxxxxxxxxxxxxxxxx|style="margin:0px; padding:0px; min-height:inherit;"}}|style="min-height:64px; margin:0px; padding:0px; border:none; border-left:1px solid #e0e0e0;"}}
  <div style="float:left; padding-left:2px; padding-right:2px;">[[image:64px-Keyboard.png|x64px|link=|Type This]]</div>{{#tag:pre|{{#tag:pre|{{#tag:pre|{{#tag:pre|{{#tag:pre|{{#tag:pre|xxxxxxxxxxxxxxxxxxxxx|style="margin:0px; padding:0px; min-height:inherit; border:none; outline:1px solid #e0e0e0;"}}|style="margin:0px; padding:0px; min-height:inherit; border:none; outline:1px solid #e0e0e0;"}}|style="margin:0px; padding:0px; min-height:inherit; border:none; outline:1px solid #e0e0e0;"}}|style="margin:0px; padding:0px; min-height:inherit; border:none; outline:1px solid #e0e0e0;"}}|style="margin:0px; padding:0px; min-height:inherit; border:none; outline:1px solid #e0e0e0;"}}|style="min-height:64px; margin:0px; padding:0px; border:none; border-left:1px solid #e0e0e0;"}}
</div>
</div>

Revision as of 23:32, 12 September 2021

Problems

Double margin at top and bottom

This template is doing a <pre> automatically (with his own margin-top:12px; margin-bottom:12px;)
If we call the template with another <pre> or <syntaxhighlight> (with his own margin-top:12px; margin-bottom:12px;)... it resuts in a double vertical margin of around 24px
There are a bunch of wiki pages using this template affected by this double-margin problem

Type This
xxxxxxxxxxxxxxxxxxxxx