- Posts: 82
- Thank you received: 0
How make bigger image to responsive
-
miq
Inactive member - Topic Author
- Member
Less
More
9 years 8 months ago #44780
by miq
How make bigger image to responsive was created by miq
I want to know that If I have this template and I write a article and put an image whose is 1150 px but I put that image in this code in the article <img src="smiley.gif" alt="Smiley face" height="650" width="350". After putting this code I want to know will the image still responsive for mobile or adjustable as per the widow screen. How we can make this image from 1150 px to responsive in the article?
Please Log in to join the conversation.
-
ivan.milic
Support Staff - Moderator
Less
More
- Posts: 14116
- Thank you received: 1639
9 years 8 months ago #44783
by ivan.milic
Replied by ivan.milic on topic How make bigger image to responsive
Like this:
<img src="smiley.gif" alt="Smiley face" style="width:1150px; height:auto; max-width:100%;" ....
So it will be 1150px when there is space and when screen is less than 1150 max-width will limit it to 100% of container width
<img src="smiley.gif" alt="Smiley face" style="width:1150px; height:auto; max-width:100%;" ....
So it will be 1150px when there is space and when screen is less than 1150 max-width will limit it to 100% of container width
Please Log in to join the conversation.
-
miq
Inactive member - Topic Author
- Member
Less
More
- Posts: 82
- Thank you received: 0
9 years 8 months ago #44788
by miq
Replied by miq on topic How make bigger image to responsive
Please Log in to join the conversation.
-
ivan.milic
Support Staff - Moderator
Less
More
- Posts: 14116
- Thank you received: 1639
9 years 8 months ago #44790
by ivan.milic
Replied by ivan.milic on topic How make bigger image to responsive
Ok, this is way you would do it directly from HTML.
Please Log in to join the conversation.
Time to create page: 0.163 seconds