View Single Post
Old 05-03-2017, 06:44 AM   #30
fluoresce
Enthusiast
fluoresce ought to be getting tired of karma fortunes by now.fluoresce ought to be getting tired of karma fortunes by now.fluoresce ought to be getting tired of karma fortunes by now.fluoresce ought to be getting tired of karma fortunes by now.fluoresce ought to be getting tired of karma fortunes by now.fluoresce ought to be getting tired of karma fortunes by now.fluoresce ought to be getting tired of karma fortunes by now.fluoresce ought to be getting tired of karma fortunes by now.fluoresce ought to be getting tired of karma fortunes by now.fluoresce ought to be getting tired of karma fortunes by now.fluoresce ought to be getting tired of karma fortunes by now.
 
Posts: 38
Karma: 342440
Join Date: Apr 2017
Device: Sigil
Quote:
Originally Posted by JSWolf View Post
You can try code like that using ADE for PC or MAC. You can resize the ADE window to see the results of the code and decide what you might want to use for a %. I would have to test things to know what % number(s) to use.
Thanks, JSWolf.

Okay, this is what I have done.

CSS

Code:
img {
max-width: 100%;
height: auto;
}
HTML

Code:
<img src="whatever" alt=""/>
In other words, the images only include src and alt attributes. I've removed the width and height attributes.

Everything seems to be working well. The images are scaled up to their maximum size in pixels, after which they stop being scaled up.

However, I've now encountered another problem!

Many images are just tables that include lots of text. When these images are scaled down, they look very blurry on ADE for PC!

Having done some research, I understand that this is not a CSS problem; rather, it's to do with the fact that text is difficult to be scaled down.

Do you know how I could fix this problem?

Last edited by fluoresce; 05-03-2017 at 08:05 AM.
fluoresce is offline   Reply With Quote