Ask your WordPress questions! Pay money and get answers fast! Comodo Trusted Site Seal
Official PayPal Seal

aligncenter not working! WordPress

  • SOLVED

My center-aligned images are not aligning to the left.

Link: [[LINK href="http://themeforward.com/demo2/2011/02/12/drive-angry/"]]http://themeforward.com/demo2/2011/02/12/drive-angry/[[/LINK]]

/* Wrap Images */
#single_wrap img { background:url(img/menu.jpg) repeat #5D6C7A; padding:5px; border:1px solid #3C4751; height:auto; z-index:5!important; -webkit-border-radius:5px; -moz-border-radius:5px; border-radius:5px }
#single_wrap p img { padding:5px; border:1px solid #3C4751; margin-top:10px; z-index:5!important; height:auto; max-width:968px; background:url(img/menu.jpg) repeat #5D6C7A; -webkit-border-radius:5px; -moz-border-radius:5px; border-radius:5px }

/* Images */
.aligncenter { margin:10px auto 0 auto!important; text-align:center!important; float:none!important }
.alignleft { display:block; float:left; margin:10px 15px 7px 0 }
.alignright { display:block; float:right; margin:10px 0px 7px 15px!important }

Answers (2)

2011-02-26

Pippin Williamson answers:

Add "display: block;" to the aligncenter class.

2011-02-26

Jeremy Jared answers:

Would you explain what you are needing?

Are you saying that the images that are now align-left should be center aligned?

Could you give a specific page where they aren't aligning correctly. They look good on the pages I view.