I have a simple table with 2 cols and have encountered a few problems. The left col width is 5% (the text is generally larger that this but I cannot change the size), and the table width is 100%. The table is inside 2 divs but neither divs have any styling.
1 - If the right col doesn't have a width then the width of the first col is just ignored and the cols have a 50/50 width.
2 - If the right col is set to 95% to make up the 100%, it spills over the page margins, (the left col text isnt over 5%).
3 - If the right col is set to 95% and the left col has white-space nowrap and the text in the left is bigger than the width, the text in the left and right cols overlap (not expected behaviour).
4 - If the right col is set to 1% (to get around problem in 3) then the right col sizes fine as long as there is enough text to fill about 3/4 of the col, but if there is less text than that then it shrinks in size (depending on how much text there is, shrinks to about 50%), so either way I can't get what I need.
So to sum up what I need, I need a 2 col table, left col 5% white-space nowrap with text that will be bigger than the 5%, right col the full rest of the width with no overlapping text.
Hope this is clear enough.
Thanks in advance!
1 - If the right col doesn't have a width then the width of the first col is just ignored and the cols have a 50/50 width.
2 - If the right col is set to 95% to make up the 100%, it spills over the page margins, (the left col text isnt over 5%).
3 - If the right col is set to 95% and the left col has white-space nowrap and the text in the left is bigger than the width, the text in the left and right cols overlap (not expected behaviour).
4 - If the right col is set to 1% (to get around problem in 3) then the right col sizes fine as long as there is enough text to fill about 3/4 of the col, but if there is less text than that then it shrinks in size (depending on how much text there is, shrinks to about 50%), so either way I can't get what I need.
So to sum up what I need, I need a 2 col table, left col 5% white-space nowrap with text that will be bigger than the 5%, right col the full rest of the width with no overlapping text.
Hope this is clear enough.
Thanks in advance!