Forum How do I...?

Best practice - margins

tormods
I'm quite new to using css for paging and I would be interesting in knowing if there is a best practice for using margins? The problem I find is that it is difficult to ensure that the margins in the top of every page stays the same on every page regardless of content-type.

More specifically I would like to know if it's possible to set specific margins to an element-type if it's on top of a page. For instance my document has several pictures. I have set a margin-top to this element, which works fine when it follows a paragraph, but when it comes on top of a page it makes the top-margin bigger than on other pages.

Another thing is setting the margins on pages where I have a border-bottom on the page-margin boxes. I have set a margin bottom in the @top-left, @top-center and @top-center boxes, but I'm unsure if that is the best way to do it?