[Support request] How to get curved corners? like these

Home Forums Support [Support request] How to get curved corners? like these

Home Forums Support How to get curved corners? like these

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #2372072
    Krish

    How to get curved corners for Archive and blog page?

    Example:

    I want to show the posts like this example.

    Please take a look at my current look:

    #2372081
    David
    Staff
    Customer Support

    Hi there,

    try adding this CSS:

    
    .post-image img {
        border-radius: 20px;
    }
    #2372950
    Krish

    Got it.

    But how can i change the images to square? Just like the example.

    Thanks

    #2372961
    Fernando
    Customer Support

    Hi Krish,

    Try replacing the code here: https://generatepress.com/forums/topic/how-to-get-curved-corners-like-these/#post-2372081

    with this:

    article .post-image img {
        border-radius: 20px;
        aspect-ratio: 1/1;
        object-fit: cover;
    }
Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.