Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Help:Table
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
=== Overflowing tables === {{hatnote|Note: [[Template:Sticky table start]] does the same thing, and also shortens the table vertically too via a vertical [[scrollbar]]. Such a scroll box is a problem though if the sticky headers are too large. In some cases, only a horizontal scrollbar (as below) may be desired. In that case [[Template:Sticky header]] may be preferred as long as the top sticky header is not too tall. The overflow code below can not be used with it, or sticky will not work. {{t|Sticky header}} scrolling is via the whole page, not just for the table.}} A horizontal scrollbar for the whole page shows up for any wikitable that is too wide for the screen. To create a scrollbar just for the table the following code may be used. Place the following code above a wikitable initialization: <syntaxhighlight lang="html" highlight="2" class=gridbox> <div class="overflowbugx" style="overflow-x:auto;"> </syntaxhighlight> Then, after the closing bracket for the wikitable, place the following code: <syntaxhighlight lang="html" highlight="2" class=gridbox> </div> </syntaxhighlight> This will prevent the table from causing the entire page to scroll when scrolling through the table horizontally.
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)