[Resolved] Text Padding for Meta Info

Home Forums Support [Resolved] Text Padding for Meta Info

Home Forums Support Text Padding for Meta Info

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #671796
    Sean

    I’m trying to add padding (left/right) to just the text of the meta info on the homepage/blog indexes. Any way to do this? I’ve added an example image for reference.

    Not as important, but is there a way to make the featured image being used curved at the edges as well? I’ve been using CSS in the post, but would like it for the featured images as well, this is the CSS I’m using:

    .img-rounded {
        border-radius: 20px;
    }
    GeneratePress 2.1.4
    GP Premium 1.7.2
    #672018
    Leo
    Staff
    Customer Support

    Hi there,

    Sorry I checked the example image but not quite sure what I’m looking at?

    Doesn’t look like there are special padding beside the meta to me.

    Let me know what I’m missing ๐Ÿ™‚

    #672074
    Sean

    The author/date/excerpt/etc. The featured image is wider, while the text is indented by padding. Although if you go to the actual article, the content/text is back it’s normal state.

    #672191
    Leo
    Staff
    Customer Support

    So you are referring to single posts?

    If so try this CSS:

    body.single .site.grid-container {
        max-width: 600px;
    }
    #673907
    Sean

    Not for the actual post itself. I only went want the text indented where the excerpt info is on the index page.

    #673945
    Tom
    Lead Developer
    Lead Developer

    Try something like this:

    .blog .inside-article > *:not(.post-image),
    .archive .inside-article > *:not(.post-image) {
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }
    #674182
    Sean

    And you’re a genius. It worked perfectly, tweaking it to my liking now.

    I appreciate it!

    #674466
    Tom
    Lead Developer
    Lead Developer

    Awesome, glad I could help! ๐Ÿ™‚

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