When setting a margin value for a div element, this margin only seems to work when a border value is set. If no border value is set, then no margins are shown for the div element. Is this behaviour usual, or could it be that I am doing something wrong?
If you know any good reference site for CSS2, that clearly explain the behaviour and purpose of elements, this info would be very welcome.
Thanks in advance.<!-- m --><a class="postlink" href="http://www.w3.org/TR/REC-CSS2/box.html#mpb-examples">http://www.w3.org/TR/REC-CSS2/box.html#mpb-examples</a><!-- m -->
If you know any good reference site for CSS2, that clearly explain the behaviour and purpose of elements, this info would be very welcome.
Thanks in advance.<!-- m --><a class="postlink" href="http://www.w3.org/TR/REC-CSS2/box.html#mpb-examples">http://www.w3.org/TR/REC-CSS2/box.html#mpb-examples</a><!-- m -->