Handle Images Easily with a Quick CSS Update

No Comments
Tags: ,
Posted 30 Jul 2008 in WordPress

WordPress WednesdaysThe latest in the WordPress software, 2.6, has some nifty features, but the image controls is not one of them, if you have a theme that does not appreciate the new coding and alignment code.

The solution is simple, and hopefully other thememakers will take notice of this change; and include this code in their new templates.

Insert the following code:

img.alignleft, div.alignleft {
float:left;
margin:0 0.5em 0.5em 0;
}
img.alignright, div.alignright {
float:right;
margin:0 0 0.5em 0.5em;
}
img.aligncentered, div.aligncentered {
text-align:center;
margin:0 auto;
}

anywhere in your .css file, and save. Now your images should align properly!

H/T to HackWordPress.com for this great piece of information/code! (Source)


WordPress Wednesdays features posts about plugins, themes and general usage of WordPress, the world’s most popular content management system!

Blog Widget by LinkWithin

Comments are closed.