Best 2 Know

The Ultimate Blogging Resource

  • Advertising
  • WebHosting
  • Contact Us
  • Blogger
    • Blogger Templates
    • Blogger Tutorials
  • Browser
    • Firefox
    • Google Chrome
  • Google
  • Internet
    • Facebook
    • Twitter
  • Thesis
  • Windows
  • WordPress
    • WordPress Themes
    • WordPress Plugins
  • More
    • Linux
    • Review
    • Solutions
    • Announcements

HORIZONTAL AND VERTICAL SPACING


CREATING PARAGRAPH INDENTATION:

There are three main ways of creating paragraph indentation:

1. One method is to create an empty, completely transparent image with a height of 1 pixel and a width of about 40 to 70 pixels (depending on how wide you want your indentation), anchor the image at the beginning of each paragraph, and the text will wrap around the image creating an indentation. It’s too much work for me.

2. You can also create an indentation using the <SPACER> tag, but keep in mind, this tag is recognized by Netscape 3.0 and 4.0, but not by any version of Internet Explorer to date.

Use the HORIZONTAL SIZE attribute of the <SPACER> tag to create a paragraph indentation. For instance, to get a 50 pixel horizontal indentation before a line of text, your HTML should look like this:

<SPACER TYPE=HORIZONTAL SIZE=50>Your text here. Your text here. Your text here. Your text here. Your text here. Your text here. Your text here. Your text here. Your text here. Your text here. Your text here. Your text here. Your text here. Your text here. Your text here. Your text here. Your text here. Your text here. Your text here. Your text here. Your text here. Your text here.

And you will get this (no indentation if you are using Explorer):

Your text here. Your text here. Your text here. Your text here. Your text here. Your text here. Your text here. Your text here. Your text here. Your text here. Your text here. Your text here. Your text here. Your text here. Your text here. Your text here. Your text here. Your text here. Your text here. Your text here. Your text here. Your text here.

3. The quickest way to create paragraph indentation – and the method recognized by all browsers – is to use a series of non-breaking spaces. HTML ignores extra white space within text. A browser will recognize the first space after a character, but any white space after is ignored. However, you can use a non-breaking space (&nbsp;), or a series of non-breaking spaces, to put extra white space within, or at the beginning or end of a text string.

For example, adding 6 non-breaking spaces at the beginning of the text string will indent the following sentence by 6 character spaces:

This text has an indent of 6 non-breaking spaces.

SPACING ABOVE AND BELOW TEXT:

There are two ways to create space above or below text:

1. You can use the VERTICAL SIZE attribute of the <SPACER> tag to create space above text. For instance, to get a 30 pixels of space above text, your HTML should look like this:

<SPACER TYPE=VERTICAL SIZE=30>Your text here. Your text here. Your text here. Your text here. Your text here. Your text here. Your text here. Your text here. Your text here. Your text here. Your text here. Your text here. Your text here. Your text here. Your text here. Your text here. Your text here. Your text here. Your text here. Your text here. Your text here. Your text here.

And you will get this – 30 pixels of space before the following text:

Your text here. Your text here. Your text here. Your text here. Your text here. Your text here. Your text here. Your text here. Your text here. Your text here. Your text here. Your text here. Your text here. Your text here. Your text here. Your text here. Your text here. Your text here. Your text here. Your text here. Your text here. Your text here.

Once again, the <SPACER> tag is recognized by Netscape 3.0 (and later versions), but not by any version of Internet Explorer to date.

2. The cheater’s way to include space above or below text (and the one method recognized by all browsers) is to just add some blank lines. Adding a series of paragraph breaks will not work (i.e. <P> <P> <P> <P> <P> <P>), but add a non-breaking space in between each paragraph break, and you have a very simple way of adding space above or below text:

<P> &nbsp; <P> &nbsp; <P>

SPACING AROUND IMAGES:

Using HSPACE (horizontal space) and VSPACE (vertical space) within the IMG SRC tag will give you horizontal and vertical padding around an image. For example, the following with give you 10 pixels above, below, and on each side of your image:

<IMG SCR=”yourimage.gif” HSPACE=10 VSPACE=10>

Subscribe via Email

Share this:

  • Click to share on X (Opens in new window) X
  • Click to share on Facebook (Opens in new window) Facebook
  • Click to share on Pocket (Opens in new window) Pocket
  • Click to print (Opens in new window) Print
  • Click to share on WhatsApp (Opens in new window) WhatsApp
  • Click to email a link to a friend (Opens in new window) Email

Related

May 4, 2009 Ritesh Sanap Internet, Solutions, Windows Cool things, Hacks

Leave a ReplyCancel reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Post navigation

Previous Previous post: MS-DOS and command line overview
Next Next post: RGB-to-Hex Conversion

Currently Trending

  • How to download Specific parts of YouTube videos
    How to download Specific parts of YouTube videos
  • Windows Vista CD key
    Windows Vista CD key
  • How to retrieve my Demonoid username
    How to retrieve my Demonoid username
  • How to add Logo to Thesis theme
    How to add Logo to Thesis theme
  • How to Delete Feedbacks from JetPack Contact Form
    How to Delete Feedbacks from JetPack Contact Form
  • List Of All 255 Keyboard All Alt Key Codes
    List Of All 255 Keyboard All Alt Key Codes
  • h4x0r ( Hacker ) - Blogger Template
    h4x0r ( Hacker ) - Blogger Template

Get Latest post in your Inbox

Random Posts

We are back !

October 8, 2010 By Ritesh Sanap 10 Comments

How to Create and Cutomize Archive page template in thesis

April 12, 2011 By Ritesh Sanap Leave a Comment

Kill XP balloon pop ups

February 29, 2008 By Ritesh Sanap Leave a Comment

How to bypass CPAlead Surveys

November 24, 2010 By Ritesh Sanap 7 Comments

Setting Windows Explorer Background Images

March 12, 2008 By Ritesh Sanap Leave a Comment

WordPress

HTTP2 Server Push for W3 Total Cache Minify plugin

August 17, 2016 By Ritesh Sanap 5 Comments

How to Disable Emojis in WordPress

January 6, 2016 By Ritesh Sanap Leave a Comment

JetPack Related posts and Sharing not working with NGINX

November 10, 2015 By Ritesh Sanap Leave a Comment

Simply Pure – WordPress Theme

November 2, 2014 By Ritesh Sanap 2 Comments

Advanced What should we Write about next? – WordPress Plugin

July 28, 2014 By Ritesh Sanap Leave a Comment

How to Disable Self Pingback or TrackBack

January 16, 2014 By Ritesh Sanap Leave a Comment

BlueStrap – WordPress Theme

January 1, 2014 By Ritesh Sanap 15 Comments

How to Create Multiple Excerpts in WordPress

December 24, 2013 By Ritesh Sanap Leave a Comment

How to Disable Auto Update in WordPress

November 21, 2013 By Ritesh Sanap Leave a Comment

How to Delete Feedbacks from JetPack Contact Form

November 19, 2013 By Ritesh Sanap 9 Comments

Recent Posts

  • HTTP2 Server Push for W3 Total Cache Minify plugin
  • How to show hidden files and folders in Mac OS X
  • How to Disable Emojis in WordPress
  • Canva – Online Photo Editor
  • JetPack Related posts and Sharing not working with NGINX

Archives

Recommends

  • DigitalOcean – Cloud Hosting
  • Dropbox – Cloud Storage
  • Elegant Themes – WordPress Themes
  • LastPass – Password Manager
  • Like us on Facebook
  • Follow on Twitter
  • +1 on Google
  • Subscribe via Email
  • RSS Feed

© 2025 Best 2 Know · All Rights Reserved · We ♥ DigitalOcean