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:

  • Twitter
  • Facebook
  • Pocket
  • Print
  • Email

Related

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

Post navigation

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

Currently Trending

  • Windows Vista CD key
  • How to download Specific parts of YouTube videos
  • How to Increase Dropbox upload speed
  • How To Make Your Own Windows Media Player Theme
  • You might also like this Widget for blogger or Related post widget
  • HTTP2 Server Push for W3 Total Cache Minify plugin
  • HORIZONTAL AND VERTICAL SPACING
  • List Of All 255 Keyboard All Alt Key Codes
  • Authy to Manage all your Google Authenticator accounts
  • Free Online Angry Birds game

Random Posts

How to host javascript on blogger

June 21, 2010 By Ritesh Sanap 5 Comments

How to Create Multiple Excerpts in WordPress

December 24, 2013 By Ritesh Sanap Leave a Comment

How to display or show comment-author’s profile image in Blogger/BlogSpot blogs

March 27, 2009 By Ritesh Sanap 7 Comments

How to add Page navigation in thesis

April 29, 2011 By Ritesh Sanap 11 Comments

6 Tips for Printing From Your Web Browser

October 4, 2011 By James Adams 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

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

loading Cancel
Post was not sent - check your email addresses!
Email check failed, please try again
Sorry, your blog cannot share posts by email.