CSS for Articles - Increasing image width allowance

Respondida

2 Comentários

  • Ifra Saqlain
    Community Moderator
    Zendesk Luminary
    Most Engaged Community Member - 2022
    Most Engaged Community Member of The Year - 2021

    Hey Bex Heenan, try this:

     
      .article-body img {
        height: auto;
        max-width: 100%;
    }

    Images would be shown in original size, means 100% width.


    You can set a static size;

    .article-body img {
        height: auto;
      max-width: 300px; /** it could be 600px, 200px, 400px,50px **/
    }

     

    If any confusion feel free ask :)

    Thanks

    Team

    0
  • Bex Heenan

    Hi Ifra,

    Thanks so much for your help! The second option worked for us in this case - thanks again! :)

    Bex

    0

Por favor, entrar para comentar.

Powered by Zendesk