Results 1 to 4 of 4

Thread: HSpace and VSpace in HTML

  1. #1
    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.....

  2. #2
    Join Date
    May 2008
    Posts
    2,012

    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.

  3. #3
    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.

  4. #4
    Join Date
    Apr 2008
    Posts
    2,005

    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>

Similar Threads

  1. html help
    By saffu khan in forum Software Development
    Replies: 3
    Last Post: 03-05-2010, 01:01 PM
  2. XML vs HTML
    By technika in forum Software Development
    Replies: 5
    Last Post: 22-01-2010, 09:14 AM
  3. Replies: 3
    Last Post: 22-09-2009, 01:12 PM
  4. How to set hspace and vspace in firefox CSS
    By VinFanatic in forum Software Development
    Replies: 3
    Last Post: 19-08-2009, 10:05 AM
  5. How do I get the HTML code to display as HTML code?
    By NAYASA in forum Software Development
    Replies: 3
    Last Post: 26-12-2008, 01:35 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,714,171,870.48276 seconds with 16 queries