CMS Development

jobnomade
Participant

How to remove fixed image width?

SOLVE

Hi,

 

I would like to remove the fixed width property of images. 

Example

<img src="//static.hubspot.com/final/img/content/email-template-images/placeholder_200x200.png" class="hs-image-widget " style="width:320px;border-width:0px;border:0px;" width="320" alt="" title="">

This is the standard output. As I want to override the width with an relative value like 100%, I don't find any option to remove it. Is there a way to remove the fixed width?

 

0 Upvotes
1 Accepted solution
Jsum
Solution
Key Advisor

How to remove fixed image width?

SOLVE

@jobnomade,

 

Just use an important tag in your css:

 

img {
    width: 100% !important;
    height: auto !important;
}

View solution in original post

1 Reply 1
Jsum
Solution
Key Advisor

How to remove fixed image width?

SOLVE

@jobnomade,

 

Just use an important tag in your css:

 

img {
    width: 100% !important;
    height: auto !important;
}