Title: Caption Css Code
Last modified: August 20, 2016

---

# Caption Css Code

 *  [sumfight](https://wordpress.org/support/users/sumfight/)
 * (@sumfight)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/caption-css-code/)
 *     ```
       .autocap {
       	clear: both;
       	border: 2px solid #000;
       	margin: 1em auto;
       	padding-bottom:0px;
       	padding-top:40px;
       	position:relative;
       	text-align: center;
   
       }
   
       .autocap div {
           /* not used, but available for you to use */
       }
   
       .autocap-text {
       	text-align: center;
       	padding: 0 0.5em;
       	font-size: 0.9em;
       	position:absolute;
       	top:0;
       ```
   
 * I’m putting my caption at the top of my pictures, as I don’t like it at the bottom.
   
   That’s it, and I want to make the text(caption) centered, but it will not center,
   it just stays to the left, what am I doing wrong.

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [Michael](https://wordpress.org/support/users/alchymyth/)
 * (@alchymyth)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/caption-css-code/#post-2152504)
 * for css/formatting questions, please post a link to your site.
 *  Thread Starter [sumfight](https://wordpress.org/support/users/sumfight/)
 * (@sumfight)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/caption-css-code/#post-2152651)
 * [http://www.codyrapol.com](http://www.codyrapol.com)

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Caption Css Code’ is closed to new replies.

## Tags

 * [caption](https://wordpress.org/support/topic-tag/caption/)

 * 2 replies
 * 2 participants
 * Last reply from: [sumfight](https://wordpress.org/support/users/sumfight/)
 * Last activity: [14 years, 11 months ago](https://wordpress.org/support/topic/caption-css-code/#post-2152651)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
