[Resolved] Align image Custom Post Type

Home Forums Support [Resolved] Align image Custom Post Type

Home Forums Support Align image Custom Post Type

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1611094
    Guillem

    I have a problem. I want to align the highlighted image of a Custom Post Type to the left. I used the following CSS:

    .single-new_acquires .inside-article .featured-image {
    float: left;
    }

    But when there is little text in the single entry I have the problem that the image is out of its container. You can see in this link:

    https://biblioteca.server2.trinchera.dev/noves-adquisicions/atles-de-les-sirenes/

    It is an issue that has happened to me other times and I would like to know how I can solve it.

    Thank you very much and sorry for my English.

    Guillem

    #1611193
    David
    Staff
    Customer Support

    Hi there,

    you can add a clearfix to the entry content using this CSS:

    .single-noves_adquisicions .inside-article .entry-content:after {
        content: ".";
        visibility: hidden;
        display: block;
        height: 0;
        clear: both;
    }
    #1611197
    Guillem

    Thank you so much. It’s perfect!

    #1611269
    David
    Staff
    Customer Support

    Glad to be of help

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.