WordPress CSS

I was wrong about the WordPress CSS stuff being hidden. I actually found the official WordPress documentation on the WordPress picture alignment.

Apart from the code I mention, WordPress recommends adding this to your style.css too:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
.wp-caption {
border: 1px solid #ddd;
text-align: center;
background-color: #f3f3f3;
padding-top: 4px;
margin: 10px;
/* optional rounded corners for browsers that support it */
-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;
}

About the Author

Similar Posts

Facebook Comments

-->

Post a Comment


(Required)


(Required)