How Margins Work for the IMG Element
I usually use a WYSIWYG editor for getting code out in a hurry, but I’m fairly proficient when it comes to HTML. Today, however, I wanted to force a margin around an image for a buffer but I incorrectly used a parameter of “margin” and assigned a pixel value. What one is supposed to do is use HSPACE and VSPACE.
HSPACE will create a margin of the specified pixel size on the left and right of the image.
VSPACE will create a margin of the specified pixel size on the to and bottom of the image.
For example:
<img src=”http://www.365discoveries.com/images/image.jpg” hspace=”5″ vspace=”3″ />
Will create a 5 pixel margin on the left and right of the image and a 3 pixel margin on the top and bottom of the image.
Leave a comment
(Possibly) Related Discoveries
Recently Discovered
Recent Comments
- Anonymous on How to Wipe Data off Palm Tungsten E2 [Erase Memory]
- Marliss Bombardier on 100s of Free Worship Backgrounds & Graphics [Church Media]
- Sandy on RedPlum Unsubscribe [spamIRL]
- HornyMama on Dr. Sanjay Gupta’s Penis Food Pyramid
- Justin Marty on New Program Checks SubFinder Automatically

