Template talk:Keyboard: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
mNo edit summary |
||
Line 5: | Line 5: | ||
If we call the template with another <nowiki><pre> or <syntaxhighlight></nowiki> (with his own margin-top:12px; margin-bottom:12px;)... it resuts in a double vertical margin of around 24px<br> | If we call the template with another <nowiki><pre> or <syntaxhighlight></nowiki> (with his own margin-top:12px; margin-bottom:12px;)... it resuts in a double vertical margin of around 24px<br> | ||
There are a bunch of wiki pages using this template affected by this double-margin problem | There are a bunch of wiki pages using this template affected by this double-margin problem | ||
<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;"}}|style="min-height:64px; margin:0px; padding:0px; border:none; border-left:1px solid #e0e0e0;"}} | |||
</div> |
Revision as of 22:06, 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
xxxxxxxxxxxxxxxxxxxxx