I can't understand why margin-right doesn't work even though my syntax appears correct in code below and margin-left works with same syntax. I want both left and right margins equal.
Also I'm trying to get rid of space under image, which I can't see where space is created in code.
<p>This is a paragraph.</p>
<p>Expand on pararapgh.</br>
<font size="3" color="#003399">TESTING COLOR</font></p>
<p>TESTING</p>
</div>
</body>
</html>
01-29-2013, 02:52 PM
tracknut
I'm not seeing the margin-right failing, it looks fine to me. You might want to put some background-color on the various divs so you can see them better. Or better yet, grab the Firebug add-on for Firefox for debugging.
As far as the image, you've got two things going on. First your HR right below it has top & bottom margins which create some space. Then also you want to set the img tag to display:block to avoid a small margin on the bottom of it.