July 30, 2008

Handle Images Easily with a Quick CSS Update


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!

Comment Below ↓

There are no comments yet, be the first!

Leave a Comment

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Comments will be sent to the moderation queue.

ultimate geek girl © 2008. All Rights Reserved. Powered by WordPress. SuperPress Theme