Home How can i make the image grow to a certain percentage?
Reply: 0

How can i make the image grow to a certain percentage?

user867
1#
user867 Published in April 26, 2018, 1:41 pm

I never programmed in html or have done web tasks before but currently i'm using a git repo where the project is client server therefore i have to work with his code to my requirements, part of it is html and the issue i have is my images are too big 5400x3601 the small text on the images is no longer readable. I identified the part responsible of that due to trial and error :

 <div style="overflow: scroll">
        <canvas id="canvas" style="width:100%; height:80%; margin: 0; padding: 0;"></canvas>
    </div>

by changing width and style to 300% each i have got the result i want, but had issues with images who's size is like 951x663 as they fitted well on the default image without the need to oversize their looks . How can i solve that issue?

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.967978 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO