Created
August 1, 2010 20:49
-
-
Save pif/503754 to your computer and use it in GitHub Desktop.
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
/* Begin Images */ | |
p img { | |
padding: 0; | |
max-width: 100%; | |
} | |
/* Using 'class="alignright"' on an image will (who would've | |
thought?!) align the image to the right. And using 'class="centered', | |
will of course center the image. This is much better than using | |
align="center", being much more futureproof (and valid) */ | |
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; | |
} | |
.alignright { | |
float: right; | |
} | |
.alignleft { | |
float: left; | |
} | |
/* End Images */ | |
/* Captions */ | |
.aligncenter, | |
div.aligncenter { | |
display: block; | |
margin-left: auto; | |
margin-right: auto; | |
} | |
.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; | |
color: #000; | |
} | |
.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 */ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment