: Based on sdleihssirhc's description, without outside gutters: columnWidth = (layoutWidth + gutter)/columns - gutter With outside gutters: columnWidth = (layoutWidth - gutter)/columns - gutter Though
Based on sdleihssirhc's description, without outside gutters:
columnWidth = (layoutWidth + gutter)/columns - gutter
With outside gutters:
columnWidth = (layoutWidth - gutter)/columns - gutter
Though if you're going with your own grid design, it's easier to just add it up, e.g.:
columns = 3
columnWidth = 280px
gutter = 50px
gutters = 2
layoutWidth = 3*280px + 2*50px
= 840px + 100px
= 940px
Alternatively, just build from columns without gutters and then subtract out your gutters:
layoutWidth = 960px
columns = 3
_columnWidth = 320px
gutters = 30px
columnWidth = 320px - 30px*(4/3)
= 320px - 40px
= 280px
This way you don't get weird numbers like 293.33333333px.
More posts by @Sims2060225
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.