• When you enter a description for a picture there is a pre-formatted textbox that drops below the picture and shows that text( it’s shaded gray).

    Is it possible to reformat this to have it show horizontally instead of vertically(so the text is to the right of the picture and not beneath it)?

    Any help would be much appreciated. Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Do you have a URL of an example that’s on your site? Makes it easier to figure it out.

    Thread Starter jsandlund

    (@jsandlund)

    https://jsandlund.com/blog/?page_id=13

    See how the textbox is below the picture. Is there a way to make it go to the right?

    Hi

    I made these CSS changes and got the left image’s text to the right of the image, within the grey background:

    1) change the style in the following as below
    <div width: 360px; margin-left: 0; margin-right: 0; class="wp-caption alignleft" id="attachment_109">

    2) line 517 in stylesheet add two lines

    .wp-caption p.wp-caption-text {
    font-size:11px;
    line-height:17px;
    margin:0;
    padding:0 4px 5px;
    ADD --> float:right;
    ADD --> width:170px;
    }

    3) line 511 in stylesheet add one line

    .wp-caption img {
    border:0 none;
    margin:0;
    padding:0;
    ADD --> float: left;
    }

    4) change width in this line to 360px;
    <div id="attachment_112" class="wp-caption alignright" style="width: 360px;">

    I think that’s all I changed. You may have to tweak a little and perhaps add some padding around the images. The width can’t be much wider than it is or the right image will drop down below the left image.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Reformat textbox under pictures?’ is closed to new replies.