6135Re: [NH] Re: margins for paragraphs
- Sep 30, 2007Cary wrote:
>I forgot I wrote the following only to Don:
> 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 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!
- Next post in topic >>