TechArena Community

TechArena Community (http://forums.techarena.in/)
-   Software Development (http://forums.techarena.in/software-development/)
-   -   HSpace and VSpace in HTML (http://forums.techarena.in/software-development/1179636.htm)

Japheth 14-05-2009 07:49 AM

HSpace and VSpace in HTML
 
What is the significance of hspace and vspace attributes in HTML ? Where are these attributes used ? Any ideas.....

Katty 14-05-2009 07:53 AM

Re: HSpace and VSpace in HTML
 
HSPACE and VSPACE are very impressive image attributes in HTML.

HSPACE - an image attribute that sets the horizontal space between the image and surrounding text.

VSPACE - an image attribute that sets the vertical space between the image and surrounding text.

Praetor 14-05-2009 08:04 AM

Re: HSpace and VSpace in HTML
 
HSPACE means horizontal space and VSPACE means vertical space.

Using HSPACE and VSPACE attributes within the IMG SRC tag allows you to specify horizontal and vertical padding around an image. This makes the page look really impressive and nicely presented.

For example,

<IMG SCR="tower.gif" HSPACE=10 VSPACE=10>
the above syntax will give the space 10 pixels above, below, and on each side of your tower image.

kelfro 14-05-2009 08:11 AM

Re: HSpace and VSpace in HTML
 
HSpace and VSpace are less popular features in HTML that has the great ability to add a blank border around images both horizontally and vertically. This is very useful when the page consists of both - text and images, allowing the text to present around the image without appearing ugly by brushing right up to the image.

The tags used are vspace for vertical space at the top and bottom of the image, and hspace for horizontal space at the left and right of the image. The amount of space is measured in pixels and is unlimited.

See an example below -

<img src="image.gif" width="40" height="40" hspace="3" vspace="3" border=0>


All times are GMT +5.5. The time now is 06:12 PM.