View Single Post
Old 09-02-2022, 06:40 PM   #9
Turtle91
A Hairy Wizard
Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.
 
Turtle91's Avatar
 
Posts: 3,355
Karma: 20171571
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
It is preferred to have that in the CSS rather than the HTML. Ideally you would have ALL styling in your CSS and only structural elements in your html.

Code:
in the HTML tag:
<img alt="basicdrawing" width="100%" src="../Images/basicdrawing.svg"/>

in CSS:
img {width: 10%; max-width: 1000px;}
I think at one point 'they' were trying to deprecate it in the html tag (???), but as far as I know it is still allowed...just a little gauche.
Turtle91 is offline   Reply With Quote