WordPress.org

Ready to get started?Download WordPress

Forums

Revolution theme - images not aligned correctly (2 posts)

  1. janilxx
    Member
    Posted 4 years ago #

    When I add an image to a post and justify it to the right, it looks correct in the editor. But when I view it live it won't align properly.

    Here is a link to the support forum, but unfortunately the forum has been removed.

    Does anyone remember or know how to correct this?

  2. Rev. Voodoo
    Volunteer Moderator
    Posted 4 years ago #

    well, a link to your actual site could help us?

    but...do you have the basic photo alignment stuff in your style.css?

    img.centered {
    	display: block;
    	margin-left: auto;
    	margin-right: auto;
    	}
    
    img.alignright {
    	padding: 4px;
    	margin: 0 0 2px 7px;
    	display: inline;
    	}
    
    img.alignleft {
    	padding: 4px;
    	margin: 0 7px 2px 0;
    	display: inline;
    	}
    .alignleft {
    	float:left;
    	padding:2px 0 0 10px;
    	}
    .alignright {
    	float:right;
    	padding:2px 10px 0 5px;
    	}
    .wp-caption.alignleft {
             float:left;
             margin-left:0;
             margin-right:5px;
             }
    .wp-caption.aligncenter {
             margin-left:auto;
             margin-right:auto;
             }
    .wp-caption.alignright {
             float:right;
             margin-left:5px;
             margin-right:0;
             }

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags