Created
February 26, 2013 23:06
-
-
Save jlengstorf/5043207 to your computer and use it in GitHub Desktop.
Default styling for WordPress image alignment and captions
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Default WP Alignment Classes | |
*****************************************************************************/ | |
.aligncenter,.alignleft,.alignright { | |
display: block; | |
padding: 0; | |
} | |
.aligncenter { | |
float: none; | |
margin: .5em auto 1em; | |
} | |
.alignright { | |
float: right; | |
margin: .5em 0 1em 1em; | |
} | |
.alignleft { | |
float: left; | |
margin: .5em 1em 1em 0; | |
} | |
.wp-caption { | |
padding: 5px 0; | |
border: 1px solid #555; | |
background: #444; | |
text-align: center; | |
} | |
.wp-caption img { | |
display: inline; | |
} | |
.wp-caption p.wp-caption-text { | |
margin: 5px 0 0; | |
padding: 0; | |
text-align: center; | |
font-size: 75%; | |
font-weight: 100; | |
font-style: italic; | |
color: #ddd; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment