• Resolved thsoto

    (@thsoto)


    When I insert an image into an article and select the right alignment, WP inserts a class=alignright into the img tag. The problem is that the WP CSS does not have that tag. It has img.right

    This is something that should be fixed. I didn’t know where to put this in the forum but thought this might be a good place.

    My temporary workaround is just to insert another class in the CSS with the same settings.

Viewing 2 replies - 1 through 2 (of 2 total)
  • a properly coded WP theme would have the following default image handling 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;
             }
    Thread Starter thsoto

    (@thsoto)

    Thanks for posting that!

    I think I was using a stylesheet from an older version of WP.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Problem inserting media (photos)’ is closed to new replies.