oocss icon indicating copy to clipboard operation
oocss copied to clipboard

lastUnit - margins and padding

Open TigerWolf opened this issue 14 years ago • 1 comments

I tested out the framework for a website I am developing and was confused on the best practice for margins and padding in boxes (in a grid layout).

If I have a box with content on it and I want to have padding around the content within the box; If I do so it will throw out the last column size (using class lastUnit). I saw in the CSS for the demo pages that all headings and paragraphs have a margin applied to them.

Is this the best way to do it? If I have several boxes with different types of margins or padding I will have to set all of the h[1-6] styles and paragraphs for that box.

Is this something that should be changed for this framework or should I change the way I code css?

TigerWolf avatar Nov 29 '10 03:11 TigerWolf

I'm still new, but this is what I came across.

you could try this http://brian.moonspot.net/grid-layout/oocss-grid-space.html

and see this thread https://groups.google.com/d/topic/object-oriented-css/HTRSdnx9i3o/discussion

Hope it helps, -Glenn

gmclelland avatar Apr 05 '11 22:04 gmclelland