Loading ...
Sorry, an error occurred while loading the content.

6135Re: [NH] Re: margins for paragraphs

Expand Messages
  • Axel Berger
    Sep 30, 2007
      Cary wrote:
      > I'll admit I'm having trouble following this, but you might use
      > padding on the div to create space between it and the paragraph it
      > contains rather than using a margin on the paragraph.

      I forgot I wrote the following only to Don:

      I am currently using padding in the container and setting margins to
      zero for all <P> inside that container - but what if there's more than
      one paragraph? All in all this is very unsatisfactory. This problem is
      also solved by placing a border around the container and having the
      paragraph margin push against that, but again this is not always

      > So for you example code you gave you could use this styling:

      You are absolutely right! What must have happenened (again!) when I
      tried that first was some silly typo and I had to take away the
      paragraph margins altogether.
      I have now found two more things:
      1) Doing it exactly your way the outer margins inside the light DIVs get
      somewhat bigger than I'd like them.
      2) Even I very small nominal padding of just one pixel does the trick
      and everything looks perfect.

      Oh for the syntax error messages in compilers that don't let typos slip
      by so easily!

    • Show all 4 messages in this topic