Mixin for Floated Columns


/ Published in: SASS
Save to your folder(s)

I created this for a project I'm working on, and specifically left it bare-bones to maximise flexibility. Basically this mixin accurately calculates proper widths for each column when passed the available area, number of columns desired, and gutter width.

Uses last-child, so it might be a pixel short in IE7 - however, the width will never be too large as it rounds down. So no float drops. Plus, who cares about IE7.. or IE at all for that matter?

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.