Site logo

[Resolved] Blog Page read more button

Home Forums Support [Resolved] Blog Page read more button

Home Forums Support Blog Page read more button

  • This topic has 26 replies, 4 voices, and was last updated 4 years ago by Ying.
Viewing 12 posts - 16 through 27 (of 27 total)
  • Author
    Posts
  • #2172273
    iamarghya

    Hey, an extra question David.
    In the link see my featured images are in 16/9 and object-fit cover but the total images are not showing Idk I think the cover is not working? Can u check and suggest to me what to do?

    #2172276
    iamarghya

    And seeing this type of design I wanted, that overlay type effect in the photo how to achieve that in CSS?

    #2172285
    David
    Staff
    Customer Support

    1. Your CSS is wrong:

    .blog #main .inside-article .post-image {
        aspect-ratio: 16/9;
        object-fit: cover;
        margin-bottom: 20px;
        overflow: hidden;
    }

    Its targeting the .post-image container – object-fit only works on replaced or media elements. Therefore you should target: .blog #main .inside-article .post-image img

    2. if applied to an img – object-fit: cover; forces the image to fill the space – and if the original image is a different aspect ratio it will crop the image. If you want to change an images aspect-ratio and keep all the image – then you don’t use object-fit – BUT the image will be distorted.

    #2172302
    iamarghya

    oh I see ok ok I got it

    #2172303
    iamarghya

    ya, It worked but the image is distorted can u tell me what is the best size for a featured image?

    #2172308
    David
    Staff
    Customer Support

    There is no ‘best’ size – as long as they are all the same size / aspect-ratio then you can adjust to suit. If you like the 16:9 aspect ratio then use that.

    #2172312
    iamarghya

    I have almost every picture in 1200 * 900 px what is adjusted to suit?

    #2172603
    David
    Staff
    Customer Support

    maybe use a 12 / 9 aspect ratio ?

    #2172668
    iamarghya

    Hey I also asked this question here I think it slipped out but can u help me with that?

    #2172714
    Ying
    Staff
    Customer Support

    Hi there,

    Not sure what does this mean:

    Hey I also asked this question here I think it slipped out but can u help me with that?

    I thought your question Blog Page read more buttonhas been answered.

    Let me know 🙂

    #2172755
    iamarghya

    Oh actually yes but I have also asked a different question should I ask it on a different topic?

    #2172766
    Ying
    Staff
    Customer Support

    Yes, please.

    We would prefer that, thanks!

Viewing 12 posts - 16 through 27 (of 27 total)
  • You must be logged in to reply to this topic.