Changing the Image Alignment

Written By: Brad Markle
Experience Level: Beginner
Articles labeled as Beginner are those that require basic tasks to be completed, such as making simple configuration changes following a brief set of instructions. If you find yourself needing assistance, our Technical Support Department can generally assist.
Print E-mail:

In the last tutorial of this series, you learned how to add a basic image to your website. Often you will need to change the alignment of the image on the page. This can be done by modifying you image tag in the HTML code. We will use the same code as we did in the previous tutorial.

<img src="Images/my-image.jpg" />

Now we will change the alignment.  For the alignment of the image, you have a few options:

  • align="left"
  • align="right"
  • align="middle"
  • align="top"
  • align="bottom"

If we have an image that we want to appear in the middle of the page, we will use the "middle" alignment tag.  The align tag will go in the same code as the img src, like this:

<img src="Images/image.jpg" align="middle">

The image will now appear in the middle of the page.  When an image is aligned in this method, the text will appear above or below the image.

 

Further Reading:

Rating:
 
Please log in to rate this article.
Like this Article?
Notify Me of Updates!
Please login to subscribe to receive notifications when this article is updated.
Prerequisite Articles
  • Inserting Images using HTML
  • Comments

    Currently no comments

    You must log in before commenting.

    Need more Help?

    Search
    Current Customers
    Chat:Click to Chat Now
    Call:888-321-HOST (4678)
    E-mail:support@InMotionHosting.com
    Ticket Submit a Support Ticket
    Ask the Community!
    Get help with your questions from our community of like-minded hosting users and InMotion Hosting Staff.
    Not a Customer?
    Get web hosting from a company that is here to help. Sign up today!

    Follow InMotion Hosting!

     4236 Followers. Follow Us!

    Continuing Education

    Follow this Education Channel to stay up to date on Website Design! (what is this?)
    If you're familiar with the traditional setup of college courses, then learning through our Education Channels will be a breeze. We begin with an introductory 101 class, and advance all the way up to 300 level classes. Stay up to date on your favorite topics by becoming a fan on facebook and following us on twitter (links in the right sidebar of the page).
      Followers. Follow Us!

    Further Your Education!

    Subscribe To Other Education Channels!

    Everything Email
    Website Design
    Premium Website Builder
    cPanel
    WordPress
    Using Web Host Manager
    OpenCart
    Magento Tutorial

    Have a Question?

    If you need some help, submit your question to our Community!
    We guarantee a response within 60 minutes (8am - 5pm EST, Monday - Friday)

    Recent Questions