Skip to content

Instantly share code, notes, and snippets.

@webhasan
Last active October 10, 2015 09:43
Show Gist options
  • Save webhasan/8840bf884fad0a522b2f to your computer and use it in GitHub Desktop.
Save webhasan/8840bf884fad0a522b2f to your computer and use it in GitHub Desktop.
wp: wordpres-align-image-css
.alignnone {
margin: 5px 20px 20px 0;
}
.aligncenter,
div.aligncenter {
display: block;
margin: 5px auto 5px auto;
}
.alignright {
float:right;
margin: 5px 0 20px 20px;
}
.alignleft {
float: left;
margin: 5px 20px 20px 0;
}
.aligncenter {
display: block;
margin: 5px auto 5px auto;
}
a img.alignright {
float: right;
margin: 5px 0 20px 20px;
}
a img.alignnone {
margin: 5px 20px 20px 0;
}
a img.alignleft {
float: left;
margin: 5px 20px 20px 0;
}
a img.aligncenter {
display: block;
margin-left: auto;
margin-right: auto
}
.wp-caption {
background: #fff;
border: 1px solid #f0f0f0;
max-width: 96%;
text-align: center;
padding-top: 5px;
}
.wp-caption p {
margin-bottom: 0;
}
.wp-caption.alignnone {
margin: 5px 20px 20px 0;
}
.wp-caption.alignleft {
margin: 5px 20px 20px 0;
}
.wp-caption.alignright {
margin: 5px 0 20px 20px;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment