• Resolved acrofford

    (@acrofford)


    I really like the captions option in WP 2.6. I am trying to use them but there is not spacing between the caption and my post test. I also wanted it to be a different color and aligned differently.

    I assume I need to create a new class and then with each caption use <div class=”caption”>the caption</div>. This works but I don’t know how to get it so it is spaced.

    .caption {
    color: #999999;
    text-align: left;
    }

    You can see what I am talking about at https://www.andycrofford.com.

    Also, when I try to embed the video on the WP Dev blog it is just a blank space where the vid should be. Any ideas on that?

Viewing 16 replies (of 16 total)
  • JG

    (@gmgartner)

    This came out of the classic theme css and resolved my particular version of this issue.

    /* Captions & aligment */
    .aligncenter,
    div.aligncenter {
    	display: block;
    	margin-left: auto;
    	margin-right: auto;
    }
    
    .alignleft {
    	float: left;
    }
    
    .alignright {
    	float: right;
    }
    
    .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;
    }
    
    .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 & aligment */

Viewing 16 replies (of 16 total)
  • The topic ‘Help with WP 2.6 Image Captions and Video’ is closed to new replies.