Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 14-05-2009
Member
 
Join Date: Feb 2009
Posts: 52
HSpace and VSpace in HTML

What is the significance of hspace and vspace attributes in HTML ? Where are these attributes used ? Any ideas.....
Reply With Quote
  #2  
Old 14-05-2009
Member
 
Join Date: May 2008
Posts: 2,008
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.
Reply With Quote
  #3  
Old 14-05-2009
Member
 
Join Date: Apr 2008
Posts: 1,948
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.
Reply With Quote
  #4  
Old 14-05-2009
Member
 
Join Date: Apr 2008
Posts: 2,001
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>
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "HSpace and VSpace in HTML"
Thread Thread Starter Forum Replies Last Post
html help saffu khan Software Development 3 03-05-2010 01:01 PM
XML vs HTML technika Software Development 5 22-01-2010 09:14 AM
How to define HTML Validator and services provided by HTML Validator Aldous Software Development 3 22-09-2009 01:12 PM
How to set hspace and vspace in firefox CSS VinFanatic Software Development 3 19-08-2009 10:05 AM
How do I get the HTML code to display as HTML code? NAYASA Software Development 3 26-12-2008 01:35 PM


All times are GMT +5.5. The time now is 03:12 AM.