Alignment of images in Wordpress 2.6

Published in Programming, Wordpress | Tags:

word logo Alinhamento de imagens no Wordpress 2.6 If by chance have done the upgrade to Wordpress 2.6 then surely noticed the way (different!) That Wordpress uses to align the images in the posts. After several different items have failed to insert images as desired by deicide "a spin" the web looking for a solution, and there found a way to soluccionar my problem of aligning images in posts.

The problems I had with this new system have been resorted to when class = "alignleft" class = "alignright" or class = "aligncentered" because to me the images aligned properly but the text was not aligned correctly in relation to the image .

The solution to this problem, if so we call it, is simply adding the following code in the file stylesheet.css your template.

img.alignright, div.alignright (
float: left;
margin: 0 0.5em 0.5em 0;
)
img.alignleft, div.alignleft (
float: right;
margin: 0 0 0.5em 0.5em;
)
img.aligncenter, div.aligncenter (
text-align: center;
margin: 0 auto;
)

With this code added in your stylesheet.css should not have more problems with the alignment of images, as you can see in this post just tested the new code.
Appeal: wprocks.com

Related Posts with Thumbnails

3 Comments to "alignment of images in Wordpress 2.6"

  • Alignment of images in Wordpress 2.6 | Kerkeberos.net - Technology and Information ...

    If by chance have done the upgrade to Wordpress 2.6 then surely noticed the way (different!) That Wordpress uses to align the images in the posts. After several different items have failed to insert images as you want ...

  • Man, was what I needed! He had this problem for months, and could never solve. The only viable solution for me was to return to the old code ".

    Thanks for the tip : D

  • Content 100%. I close my blog and was what I was looking for!

Post comment