최근 검색


최근 검색 없음

CSS for Articles - Increasing image width allowance

답변함


2022년 4월 26일에 게시됨

Hi all,

I was wondering if anyone can help me with how to increase the width of images / screenshots allowed in articles please within the CSS? I've been unable to figure it out and I couldn't spot it in the CSS cookbook.

 

Thanks!

Bex


0

2

댓글 2개

image avatar

Ifra Saqlain

Zendesk LuminaryMost Engaged Community Member - 2022Most Engaged Community Member of The Year - 2021Community Moderator

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


Hi Ifra,

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

Bex

0


댓글을 남기려면 로그인하세요.

원하는 정보를 못 찾으셨나요?

새 게시물