WordPress.org

Ready to get started?Download WordPress

Forums

description space under an image (7 posts)

  1. mervb01
    Member
    Posted 1 year ago #

    Is there a way to increase the space allocated to a description under a gallery picture so the text does not run off the page?

    Thanks

  2. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    Generally, yes, you can do that in the CSS code -- but specifics would depend on your site. Can you post a link to a page where you want to change this?

  3. mervb01
    Member
    Posted 1 year ago #

    http://www.mervynbeamishartist.com/gallery/ - last picture "Stuck"is an example - thanks

  4. mervb01
    Member
    Posted 1 year ago #

  5. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    It looks like that space is being limited by the height set in the CSS for the thickbox gallery here:

    #TB_caption {
        float: left;
        height: 25px;
        padding: 7px 30px 10px 25px;
    }

    So try adding this to your child theme CSS:

    #TB_caption {
        height: auto;
    }

    That should (hopefully) make it expand to fit however long a caption you enter.

  6. mervb01
    Member
    Posted 1 year ago #

    That was a bit of a disaster - and I'm not sure how to get back.

    It did do what we wanted it to do, but turned the rest of the site into chaos - I've re-edited the CSS to get rid of the addition, but at present it is still a mess and I don't know how to fix it - any ideas? I'll try cleani9ng my cache unless it is a problem there.

    http://www.mervbart.com

  7. mervb01
    Member
    Posted 1 year ago #

    OK - rebuilt the style.css and all is back to normal, but this problem (ie description space) remains :)

Topic Closed

This topic has been closed to new replies.

About this Topic