How do I make images automatically resize themselves depending on the screen size?
I add a css attribute for an image such as
img {
width: 100%;
height: auto;
}
but that will make a small image take the form of the container it is in and if the container is huge, the small image will stretch out and pixelate. So do I just create special css attribute for the large images? I don't want the images to fill up the container or div that they are in. I just want them to resize based on the screen size. Tables should also resize as well. I'm using both divs and tables.