Support » Fixing WordPress » Image Alignment

  • Hello,
    Trying to align images right using the options given by WordPress from the image upload/insert options. But all the images keep being aligned left. Can anyone help or provide me with a hack around it?

Viewing 1 replies (of 1 total)
  • Can you post a link to your site?

    In the meantime, you may want to try adding the following code (taken from the 2011 default theme) to your theme’s style.css file:

    .alignleft,
    img.alignleft {
    	display: inline;
    	float: left;
    	margin-right: 24px;
    	margin-top: 4px;
    }
    .alignright,
    img.alignright {
    	display: inline;
    	float: right;
    	margin-left: 24px;
    	margin-top: 4px;
    }
    .aligncenter,
    img.aligncenter {
    	clear: both;
    	display: block;
    	margin-left: auto;
    	margin-right: auto;
    }
Viewing 1 replies (of 1 total)
  • The topic ‘Image Alignment’ is closed to new replies.