Jump to content
Sign in to follow this  
yeeling10

How to make image in a table mobile responsive?

Recommended Posts

did you use bootsrap ? if you use it just add class "img-responsive" without any configuration width and height, but make sure you has image not to large or to small ?

if you use normal css use media query here then use % for images

Share this post


Link to post
Share on other sites


Here is the CSS used to make it responsive:

.image img {

height: auto !important;

width: auto !important;

max-width: 100%;

}

 

table {

width: 100%;

table-layout: fixed;

}

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...