[wp-trac] Re: [WordPress Trac] #7340: Revert Aligning Images in
Write
WordPress Trac
wp-trac at lists.automattic.com
Thu Jul 17 21:34:21 GMT 2008
#7340: Revert Aligning Images in Write
----------------------+-----------------------------------------------------
Reporter: dcole07 | Owner: anonymous
Type: defect | Status: closed
Priority: normal | Milestone:
Component: General | Version: 2.6
Severity: critical | Resolution: wontfix
Keywords: |
----------------------+-----------------------------------------------------
Changes (by azaozz):
* status: new => closed
* resolution: => wontfix
* milestone: 2.7 =>
Comment:
Aligning of images with css classes was introduced in WordPress 2.5. The
same classes are used to align images with captions too. These classes are
in both the Default and Classic themes, on the support forum and in many
blog posts. They can be copied/pasted really easy for themes that don't
have them yet. When themes are updated, they would probably include more
styling.
If using captions, few more classes would have to be added so they look
right:
{{{
/* Captions & aligment */
.aligncenter,
div.aligncenter {
display: block;
margin-left: auto;
margin-right: auto;
}
.alignleft {
float: left;
}
.alignright {
float: right;
}
.wp-caption {
border: 1px solid #ddd;
text-align: center;
background-color: #f3f3f3;
padding-top: 4px;
margin: 10px;
-moz-border-radius: 3px;
-khtml-border-radius: 3px;
-webkit-border-radius: 3px;
border-radius: 3px;
}
.wp-caption img {
margin: 0;
padding: 0;
border: 0 none;
}
.wp-caption p.wp-caption-text {
font-size: 11px;
line-height: 17px;
padding: 0 4px 5px;
margin: 0;
}
/* End captions & aligment */
}}}
Also, text alignment works as before.
--
Ticket URL: <http://trac.wordpress.org/ticket/7340#comment:1>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list