|- !width="30%"| Stuff in header |- || Stuff in cell
|- |width="100px"| Stuff in cell
wait why is it not working?
That much we could figure out ourselves, thank you very much. Link?
Never mind, it works
FYI, even though you are setting "width", it actually acts as "min-width". If you don't want the columns to expand to accomodate longer content, then you need to use "table-layout: fixed;" on the table.
{| class="wikitable" style="width: 100%;" ! width="25%" | adsadsadsadsadsadsadsadsadsadsadsadsadsadsadsads ! Good Bye |}
adsadsadsadsadsadsadsadsadsadsadsadsadsadsadsads | Good Bye |
---|
{| class="wikitable" style="width: 100%; table-layout: fixed;" ! width="25%" | adsadsadsadsadsadsadsadsadsadsadsadsadsadsadsads ! Good Bye |}
adsadsadsadsadsadsadsadsadsadsadsadsadsadsadsads | Good Bye |
---|
When fixing the table layout, the width of each column is determined by the width of the cells in the first row.
{| class="wikitable" style="width: 100%;" ! width="25%" | adsadsadsadsadsadsadsadsadsadsadsadsadsadsadsads ! Good Bye |}
adsadsadsadsadsadsadsadsadsadsadsadsadsadsadsads | Good Bye |
---|
{| class="wikitable" style="width: 100%; table-layout: fixed;" ! width="25%" | adsadsadsadsadsadsadsadsadsadsadsadsadsadsadsads ! Good Bye |}
adsadsadsadsadsadsadsadsadsadsadsadsadsadsadsads | Good Bye |
---|
When fixing the table layout, the width of each column is determined by the width of the cells in the first row.
How do I make it so that it does stay in one lane at all times?
https://piggyplanet.fandom.com/wiki/List_of_states_and_territories_in_Piggania_by_quality_of_life
It cuts off the last column. UCP Wikitables do not have a scroll-bar, so only a few columns can fit, and I really want to be able to have all columns fit
At the top of your table, you are missing style="
which needs to go right before width: 100%
. The table-layout: fixed;
goes in the style attribute along with the width and whatnot that you have also set. Also, if you are going to set the width for every column, you need to make sure they add to 100%. Currently they add to 64%.