Printable Version of Topic

Click here to view this topic in its original format

HTMLHelp Forums _ Markup (HTML, XHTML, XML) _ Rows or cols attribute doesn’t add up to 100 percent

Posted by: Almalutz Mar 18 2017, 12:39 AM

What happens if the number of values in the rows or cols attribute doesn’t add up to 100 percent?

Posted by: pandy Mar 18 2017, 08:29 AM

The browser makes them add up. I think it varies how. But typically, the browser makes i proportional to the entered values, if possible.

Say, if in a 5 column table each column has the width 10%, the columns will be of equal width. If 4 is 10% and one is 20%, the 20 one will be twice the width of the others and so on. If one column lacks a width it will take up he slack, i.e. it will be about the width that's lacking to make it add up, provided TABLE doesn't have a width that prevents this. This is in my experience, there may be browsers that doesn't do it like this.

Powered by Invision Power Board (
© Invision Power Services (