• Blogging
  • Technology News
  • How To
  • Webmaster Tips

The Web Files

Web site promotion and marketing info, Helpful Tips, Latest Gadgets, News and Webdesign Services

  • Home
  • Blog
  • Archives
  • Links
  • About
  • Contact

You are here: Home / How To / Aligning image and video code in blog posts

Aligning image and video code in blog posts

March 20, 2007 by Tricia

Earlier in the month I did a series of posts about preparing and adding images to your blog posts. I think the only thing that I failed to discuss in much depth was the tags that you can put around your image or even embedded video code.


WordPress has to modes – Visual (Rich text) and Code (plain text). You can add images to your posts while in either mode. However, you should only add embedded video code or even javascript code (say for a blogroll) while in code or plain text mode as it messes up the code when in rich text mode.

For the purpose of this discussion I’m going to discuss the coding that you can added around embedded images, video and other code while in plain text mode. I will just say that it’s easy to center or move an image to the left or right while in visual or rich text mode simply by clicking on the alignment icons near the top of your wordpress post writing area.

To center an image in your post you can use this code (removes spaces):

< p align=”center” > image code < /p>

and to have a photo to the left or right of a paragraph have the paragraph tags around the particular paragraph that you’re sticking the image in:

ie < p >text of paragraph < /p>

with your image code beside the first paragraph tag

< p > < image code > text < /p>

Unfortunately you need to do a little bit more to the image code to make the text of the post wrap around the image. With the code that I’ve listed above the image will still be higher than the text. However, if you want to have the text wrap to the right or left of the image simple include:

align=”left” or “right” near the img tag like this:

< p > < img align=”left” rest of image code ….> < /p>

radia_phone.jpg To illustrate the full code, in order to place this thumbnail image to right of this text, and have the text wrap evenly around it I had to use the following code. Remember, you must remove the spaces for this code to work on your site. I’ve only put spaces between the code here so that I could actually demonstrate the code:

< p > < img align=”right” src=’https://thewebfiles.com/wp-content/uploads/2007/04/radia_phone.thumbnail.jpg’ alt=’radia_phone.jpg’ / > < /p>




Filed Under: How To, Site maintenance Tagged With: adding code around images, blog posts, code to align images, embedded code, embedded video, Wordpress

Comments

  1. healthyc says

    November 3, 2008 at 6:43 pm

    Your practical help fixed my text wrap problem and is much appreciated!

Connect with Us

  • Facebook
  • Flickr
  • Instagram
  • Pinterest
  • RSS
  • Twitter

Categories


Eavestrough Cleaning Toronto

Recent Posts

  • Top Social Media Automation Tools Designed For Marketers
  • Social Selling: The Right Way to Sell Through Social Media
  • When in Doubt Turn to SEO Consulting
  • Considering using Guest Bloggers
  • Can you make money blogging? Yep
  • The World Of Blogging
  • Internet Marketing And Permission-Based Email Marketing

Recent Comments

  • Locked out my own sites by Bad Behavior plugin — The Web Files on The War on Comment Spam
  • AspDotNetStorefront E-commerce shopping cart — The Web Files on What Are The Best Ways To Make Money Using A Blog?
  • I changed my do follow plugin to Lucia’s Linky Love — Tricia's Musings on I’m not against website urls – I’m against comment spam
  • diagnosing comon windows errors on It’s important to backup your data regularly
  • Parol on Social Selling: The Right Way to Sell Through Social Media

Shopping

Gifts, Gadgets, computers and More! At our Amazon store.

Text Link Ads

Site Stats





Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org

Archives

Blogroll

  • Eavestrough Cleaning Toronto
  • The Career Strategist

Other Sites

  • As the Garden Grows
  • Shopping Maniac
  • You are in My World Now
  • Tricia's Reptile and Amphibian Care
  • Amphibian Care

Search our Site

Pages

  • About
  • Archives
  • Become a Guest Blogger at The WebFiles
  • Blog
  • Canadian Bloggers
  • Contact
  • Disclosure
  • Do Follow Bloggers
  • Links
  • Privacy Policy
  • Toronto Bloggers

Tags

Affiliate article articles blog Blogger Blogging Blogroll blogs business comment comments computer CPU design easy email features Google How To install instructions Internet internet marketing Keyword page rank plugin plugins posts problem resources search engine SEO sites Software tech traffic Video visitors Web web host website Wordpress Wordpress Plugin write writing

Copyright © 2025 · News Pro Theme on Genesis Framework · WordPress · Log in