Knowledge (XXG)

:98 percent table width anomaly - Knowledge (XXG)

Source 📝

202:
the template is the same, whether viewing the template in stand-alone mode, or when transcluded into another page. A similar complex issue is the use of subheaders ("==Subheader==") inside a template, and determining which page contains that labeled section for editing, because appearing on a formatted page does not mean the heading exists inside that page, just inside the template displayed for that page. These problems of nesting are related to side-effects of
35: 91: 197:
Although some might wish to consider the default limitation of CSS-class tables (to width=98%) as a bug, when tables are nested within other tables, then a wikitable of 100%-width will still add the same right-side padding as at width 50%, 80% or 98%. The problem of over-wide tables occurs at the top
109:
is an issue of some tables (since 2008, as of May 2012) with class=wikitable or class=infobox triggering the bottom scroll bar when width is set above 98%. The over-wide display has been caused by automatic extra-margin padding, as either: wider margin-right for class=wikitable, or wider margin-left
238:
This is a test of the default settings for a very wide table with much text to show the extent of the margins when enough data is present to push the table to its maximum width allowed by the table properties. A table with long text, or many wide columns, will expand to fit 98% of the width of the
201:
The issue of determining "top-level tables" is complicated by the use of templates: a table coded inside a template might seem to be a top-level table. However, if the template were invoked inside an outer table, then the result would generate nested tables. Instead, the table padding generated by
198:
level, when 100% is the entire window, with no "outside space" to have padded. Because of the relative viewpoint, the situation is termed an "anomaly". One editors's bug is another editor's "clever feature" when the padding is added inside other tables, when formatting a table-within-a-table, etc.
254:
This is a test of to override the default settings for an extra-wide table with much text to show the extent of the margins when enough data is present to push the table to its maximum width allowed by the table properties. A table with long text, or many wide columns, will expand to fit the full
129:
margin-right padding that fits okay up to 98% width. When sized to 99% or 100%, those class=wikitable formats have triggered a bottom scrollbar (since 2008, as of June 2009), appearing along the bottom of the window. To avoid this situation, use:
168:
margin-left padding that fits okay up to 98% width. When sized to 99% or 100%, those class=infobox formats have triggered a bottom scrollbar (since 2008, as of March 2009), appearing along the bottom of the window. To avoid this situation, use:
114:. The problem does not occur for other tables, without the keyword "class=". For "class=wikitable" the addition of allows a table to fill the current width of the reader's window, and bypass the 98% width limitation. 217:
The scrollbar problem only occurs for top-level tables in CSS classes, such as class=wikitable or class=infobox. A plain table (with no "class=") can be resized up to 100% without triggering a bottom scrollbar.
122:
Normally, a plain table (with no "class=") can be sized to any width up to "100%" without triggering a bottom scrollbar. However, the styles for "class=wikitable" or "wikitable sortable" have added an implicit
99:
Tables in class wikitable or infobox, wider than 98%, trigger bottom scroll bars. Use margin-right:0 or infobox margin-left:0 to avoid the scrollbar and allow full width. IMPACT: thousands of articles.
226:
The 2 wikitables below show the increased width, when the option is added to set:. This difference in width has occurred since 2008, and setting the margin is a reliable option to allow wider tables.
162:
Normally, a plain box table (with no "class=") can be sized to any width up to "100%" without triggering a bottom scrollbar. However, the various styles for "class=infobox" add an implicit
341: 300: 110:
for infoboxes. This issue is about the top-level tables on a page, not about tables (with width=100%) inside other tables. Perhaps the full-name of the essay could be:
336: 295: 275: 305: 280: 189:
The option for "margin-left:0" removes the left-side margin padding outside the infobox, rather than having a margin of 1em or 20px, or such.
285: 270: 150:
The option for "margin-right:0" removes the right-side margin padding outside the box, rather than having a margin of 1em or 20px, or such.
50:
It contains the advice or opinions of one or more Knowledge (XXG) contributors. This page is not an encyclopedia article, nor is it one of
51: 315: 153:
Note that a full-screen table of width=101% (or higher), always triggers a bottom scrollbar, as expected, because 101%: -->
346: 331: 310: 55: 65: 43: 290: 112:"98-percent table-width anomaly triggering bottom scroll-bars for top-level, CSS-class tables" 17: 325: 58:. Some essays represent widespread norms; others only represent minority viewpoints. 203: 85: 29: 239:
window. Again, this is the default width in this table.
73: 342:Knowledge (XXG) essays about article formatting 8: 301:WP:About translating German Knowledge (XXG) 250: 234: 52:Knowledge (XXG)'s policies or guidelines 337:Knowledge (XXG) essays about infoboxes 7: 56:thoroughly vetted by the community 25: 89: 33: 27:Essay on editing Knowledge (XXG) 296:WP:Thinking outside the infobox 276:WP:Advanced footnote formatting 257:Again, this is the width with. 107:98 percent table width anomaly 1: 316:WP:Authors of Knowledge (XXG) 154:100 (the full window width). 306:WP:Pruning article revisions 281:WP:Advanced table formatting 286:WP:Advanced text formatting 271:WP:Advanced article editing 255:width (100%) of the window. 246:Format when class=wikitable 230:Format when class=wikitable 363: 63: 210:Plain tables not affected 97:This page in a nutshell: 347:Knowledge (XXG) tables 332:Knowledge (XXG) essays 18:Knowledge (XXG):98WIDE 54:, as it has not been 215:As a final reminder: 118:Overwide wikitables 311:WP:Overlink crisis 193:Anomaly versus bug 158:Overwide infoboxes 261: 260: 243: 242: 103: 102: 84: 83: 16:(Redirected from 354: 251: 235: 93: 92: 86: 76: 37: 36: 30: 21: 362: 361: 357: 356: 355: 353: 352: 351: 322: 321: 320: 266: 224: 212: 195: 160: 140:class=wikitable 120: 90: 80: 79: 72: 68: 60: 59: 34: 28: 23: 22: 15: 12: 11: 5: 360: 358: 350: 349: 344: 339: 334: 324: 323: 319: 318: 313: 308: 303: 298: 293: 288: 283: 278: 273: 267: 265: 262: 259: 258: 256: 241: 240: 223: 220: 211: 208: 194: 191: 187: 186: 185: 184: 183: 182: 181: 180: 159: 156: 148: 147: 146: 145: 144: 143: 142: 141: 119: 116: 101: 100: 94: 82: 81: 78: 77: 69: 64: 61: 49: 48: 40: 38: 26: 24: 14: 13: 10: 9: 6: 4: 3: 2: 359: 348: 345: 343: 340: 338: 335: 333: 330: 329: 327: 317: 314: 312: 309: 307: 304: 302: 299: 297: 294: 292: 289: 287: 284: 282: 279: 277: 274: 272: 269: 268: 263: 253: 252: 249: 247: 237: 236: 233: 231: 227: 221: 219: 216: 209: 207: 205: 199: 192: 190: 179:class=infobox 178: 177: 176: 175: 174: 173: 172: 171: 170: 167: 166: 157: 155: 151: 139: 138: 137: 136: 135: 134: 133: 132: 131: 128: 127: 117: 115: 113: 108: 98: 95: 88: 87: 75: 71: 70: 67: 62: 57: 53: 47: 45: 39: 32: 31: 19: 245: 244: 229: 228: 225: 214: 213: 200: 196: 188: 164: 163: 161: 152: 149: 125: 124: 121: 111: 106: 104: 96: 41: 42:This is an 326:Categories 126:right-side 204:recursion 165:left-side 74:WP:98WIDE 291:WP:Alert 264:See also 222:Examples 66:Shortcut 44:essay 105:The 328:: 248:: 232:: 206:. 46:. 20:)

Index

Knowledge (XXG):98WIDE
essay
Knowledge (XXG)'s policies or guidelines
thoroughly vetted by the community
Shortcut
WP:98WIDE
recursion
WP:Advanced article editing
WP:Advanced footnote formatting
WP:Advanced table formatting
WP:Advanced text formatting
WP:Alert
WP:Thinking outside the infobox
WP:About translating German Knowledge (XXG)
WP:Pruning article revisions
WP:Overlink crisis
WP:Authors of Knowledge (XXG)
Categories
Knowledge (XXG) essays
Knowledge (XXG) essays about infoboxes
Knowledge (XXG) essays about article formatting
Knowledge (XXG) tables

Text is available under the Creative Commons Attribution-ShareAlike License. Additional terms may apply.