Resources

Subscribe

  • Subscribe
  • email subscription buttonSubscribe by Email

HTML Code: Center Images and Text

Posted by Seth | February 6, 2009 .

To center images and text you will use a simple html code.  This is what it will look like for images:

<p align=”center”><img src=”http://www.yourdomain.com/yourimage.jpg“></p>

The same exact HTML is used to center text. But instead of the “img src” between the P commands, you write your own text.

This might be useful for presenting a title, caption or quote, but I’d avoid  using it for lots of text because it’s not very natural to read a jagged line on the left hand side.

Centered text code looks like:

<p align=”center”>Your Text here</p>

Easy as pie, Mmmm…. I love pie

Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • email
  • NewsVine
  • StumbleUpon
  • Technorati
  • TwitThis

Related posts:

  1. Web Design Articles – How to Code HTML Email Newsletters In some ways, coding HTML email has become easier...
  2. Head First HTML with CSS & XHTML Amazon.com Review Today, serious Web pages use HTML and...
  3. Using HTML Codes in Your Articles: Stage Your Articles to Attract Readers Have you ever been frustrated by the appearance of...

Leave a Comment

If you would like to make a comment, please fill out the form below.

Name (required)

Email (required)

Website

Comments