Aug
20
2008
If you install WordPress and use the media uploader to manage your images in your posts – you can easily style your images quickly by adding the following code to your theme’s stylesheet.
img.alignright, img.aligncenter, img.alignleft {padding:4px;background:#efefef;border-color: #aaa #ccc #ddd #bbb;border-style: solid;border-width: 1px;} img.alignright {float:right;margin-left:5px;} img.alignleft, img.alignnone {float:left;margin-right:5px;} img.aligncenter {display: block;margin-left: auto;margin-right: auto;}
This code will set up your images to float appropriately, as well as give a nice border as seen below.
Note* This information is now updated: Updated CSS