Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

What if you wanted the gutter between columns to be the same width as the padding to the edge of the screen? E.g. in the "Columns" screenshot, gutter = 30px, but screen edge padding = 15px. How would I achieve the same value for both? (I'm not a Bootstrap user.)


This is a tough one. I will have to think about it, I'll try and respond here later.


I'm probably missing something, but wouldn't applying a 30px left and right margin to the specific container work? E.g.: http://jsfiddle.net/xyM48/

The -15px margin on the rows and 15px margin on the columns would still do their job, only that the rows would be 15 pixels smaller.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: