cssgrid icon indicating copy to clipboard operation
cssgrid copied to clipboard

Problem with columns and padding

Open midned opened this issue 13 years ago • 2 comments

The "problem" is that if we add some padding to the columns it breaks. I don't know if it is the idea or not but it can simply fixed adding the box-sizing attribute (with prefixes).

I thought to make a pull request but first I've to know if it's a problem or not

midned avatar Nov 23 '12 19:11 midned

hi, awesome grid, but i second TH3 same concern, hope to find a solution.

devmondo avatar Dec 05 '12 12:12 devmondo

It's a classic issue for this kind of frameworks. If I understand correctly, your problem is that if you apply a padding around two or more columns the whole row will break.

I don't know if it is the idea or not but it can simply fixed adding the box-sizing attribute (with prefixes).

Yes, newer grid frameworks like Toast (and i guess Fundation too) uses box-sizing to fix this. I'm evaluating Toast as well, to avoid this annoying issue.

Hope this helps.

passiomatic avatar Dec 06 '12 17:12 passiomatic