Hello there. I am Terry and I am a full-time undergraduate based in Singapore. I take photos, write a blog and design websites.

And no, I'm not a teddy bear.

Image Positioning / Alignment

A million sorries for Jin for positng this help article late! Sorry *sobs*!

Have problem aligning photos beside your text as what I do in my posts? Actually it all depends on a very simple code. The code have 2 variables – “left” and “right”. Here is the code, with the image code:

<img src=”your image url” align=”*” vspace=”#” hspace=”#“>

Well, you can replace the your image url with your own image url, and * with wither the word left or right. Inserting the variable left will make the image be placed on the left side of the page, and right for the opposite result.

For the #, it means the spacing vertically (vspace) and horizontally (hspace), means the space surrounding the image that separates it with the text. I storngly recommend for you to use 5 as it looks the best in any websites, as it is seperates the image from the text neither too much nor too little.

WARNING: Remember to place this tag before the text where you want it to appear!

Tutorials can be seen below:

<img src=”your image url” align=”left” vspace=”5″ hspace=”5″>

Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aliquam a quam vitae sem ultrices euismod. Ut condimentum ante et urna. Vestibulum venenatis. Phasellus nec ante. Ut sed arcu sit amet nulla facilisis pulvinar. Phasellus non lectus sodales mi malesuada laoreet. Sed cursus, orci laoreet tincidunt convallis, leo purus scelerisque orci, eget elementum pede ipsum non nunc. Vestibulum viverra mi id lectus. Curabitur luctus massa feugiat lorem. Praesent ultrices pede non nisl. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas.

See the difference in the position of the image in the paragraph of text?

<img src=”your image url” align=”right” vspace=”5″ hspace=”5″>

Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aliquam a quam vitae sem ultrices euismod. Ut condimentum ante et urna. Vestibulum venenatis. Phasellus nec ante. Ut sed arcu sit amet nulla facilisis pulvinar. Phasellus non lectus sodales mi malesuada laoreet. Sed cursus, orci laoreet tincidunt convallis, leo purus scelerisque orci, eget elementum pede ipsum non nunc. Vestibulum viverra mi id lectus. Curabitur luctus massa feugiat lorem. Praesent ultrices pede non nisl. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas.

<img src=”your image url” align=”left” vspace=”5” hspace=”5“>

Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aliquam a quam vitae sem ultrices euismod. Ut condimentum ante et urna. Vestibulum venenatis. Phasellus nec ante. Ut sed arcu sit amet nulla facilisis pulvinar. Phasellus non lectus sodales mi malesuada laoreet. Sed cursus, orci laoreet tincidunt convallis, leo purus scelerisque orci, eget elementum pede ipsum non nunc. Vestibulum viverra mi id lectus. Curabitur luctus massa feugiat lorem. Praesent ultrices pede non nisl. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas.

See the difference int he spacing between the image and the text?

<img src=”your image url” align=”left” vspace=”20” hspace=”20“>

Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aliquam a quam vitae sem ultrices euismod. Ut condimentum ante et urna. Vestibulum venenatis. Phasellus nec ante. Ut sed arcu sit amet nulla facilisis pulvinar. Phasellus non lectus sodales mi malesuada laoreet. Sed cursus, orci laoreet tincidunt convallis, leo purus scelerisque orci, eget elementum pede ipsum non nunc. Vestibulum viverra mi id lectus. Curabitur luctus massa feugiat lorem. Praesent ultrices pede non nisl. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas.

Cheers!

Need to know more about the paragraph of Lorem Ipsum I’m using? Click here to know more about it.

Burn after reading » Now you're done reading. What's next?

Random

Related posts that might interest you:

Popular

Posts that are popular among visitors:

Share it

If you've enjoyed the post, or think that it might be useful to others, do share in on a social network site that you're using. Thank you!

  • Digg
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • StumbleUpon
  • Technorati
  • LinkedIn
  • Reddit
  • Design Float
  • Identi.ca
  • Live
  • Ping.fm
  • Print this article!
  • Twitter
  • Netvibes
  • HackerNews
  • Slashdot

There are no comments at the moment.

Looks like there isn't a single comment here yet. Be the first!

Leave a Response » Share your thoughts or Return to top

Your name is required. Why?

  • So that I can address you personally (which I'm more than happy to do).
  • Everyone loves their name to be called, right? Nobody wants to be referred to as 'a certain someone' or Mr X (X-Men members aside).
  • If your post too much spam, your name will be imprinted on a personalised voodoo doll, completely free of charge. I'm just joking!

Your email is needed. Why?

  • Your email is, and will, never be given out to any third party under any conditions (except for people sneaking up behind me when I'm on WP admin).
  • So that I can contact you personally in case of certain issues that I wish to address personally.
  • If you post too much spam, I'll email the same spam you've posted 10 times back to you, completely free of charge.

You can always leave a personal URL behind

  • It can be anything - most people put their blog URL, their facebook page, their Twitter URL, their MySpace or etc.
  • I give love back by saying NO to no-follow. All of your webbie links are dofollows instead.

Twitter. Twitter. Twitter.

  • What is Twitter?: Twitter is a social networking and micro-blogging service that enables its users to send and read other users' updates known as tweets. Tweets are text-based posts of up to 140 bytes in length.
  • What is my Twitter ID?: To get a Twitter ID, you simply have to sign up for an account at Twitter.com. Your ID will be in the format of your profile's URL - http://twitter.com/[userid].

Comment notes

  • Gravatar: You can register for one at Gravatar.com
  • XHTML: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="" highlight="">
  • Codes: Wrap them up with <code></code> tags.

Hello Easter Egg hunter! You've discovered the magic of the Konami Code!

Yea. You probably know what the Konami code is before getting to this page. So now what? Here is a randomised YouTube video on my favourites list... which includes Rickroll, if you're luck enough to get it.

You are currently watching X Factor - Sorry Seems to be the Hardest Word by Leona Lewis. Loving it? You can even watch the video in its full screen glory :)

The Konami Code:
Konami Code sequence