Re: ALA's Holy Grail is bad?



Greg N. wrote:
dave@xxxxxxxxx wrote:

The main column appears to be about an
em below the header...

http://www.seobm.com/test/layout05.shtml

That's easily fixed by giving the main div an appropriate negative top
margin.

That's the wrong "fix" for this particular issue. The space above the
center column is caused by something called "collapsing margins", the
default top margin on the h2 element in this case.

Get rid of it by giving the center column a top padding of 1px. The
space above the footer is due to the same thing, except it's the default
bottom margin of the last paragraph.

--
Berg
.



Relevant Pages

  • Differences between browsers (surprise), a float issue?
    ... header on top, then sidebar and content on the right (left margin 17em to give sidebar its space). ... content div too narrow, ... "Fix": negative right margin for content div. ...
    (alt.html)
  • mac - vs - PC margin settings
    ... I fond that MS Word on a PC will have a smaller margin setting (we ... Greg H ...
    (microsoft.public.mac.office.word)
  • Making the content fill the page
    ... then have the content div fill the rest of the space. ... margin: 0 auto; ... Ut sit amet libero. ... placerat nec, ante. ...
    (comp.infosystems.www.authoring.stylesheets)
  • CSS problems with IE6...perfect with Opera and Firefox...strange, uh ;-)
    ... make it compatible with all the browsers. ... you may want to remove the padding. ... div will avoid margin collapse - an unexplainable space between divs. ...
    (comp.infosystems.www.authoring.stylesheets)
  • Re: IE compatible way of forcing footer to bottom of page?
    ... That is, in IE7 and below, the TopOfPageIcons div is ... ScrollableContent's top margin collapses with the top margin of ... That means that even though ScrollableContent doesn't have ... But if you put top padding or border on the outer div, ...
    (comp.infosystems.www.authoring.stylesheets)