Photo distorted in Html Need Help Rendering too 500x375 -


my photo in html not rendering long enough. photo less distorted pretty new html. original photo 500x375. hoping make render in html block exact dimensions.

just set height , width attributes on img tag:

<img src="myfile.jpg" width="500" height="375"/> 

that set dimensions 500x375 pixels. image should have these styles automatically though, it's image's styles being modified stylesheet. counteract this, can define inline style override other styles:

<img src="myfile.jpg" style="width:500px;height:375"/> 

this override other styles applied image.


Comments

Popular posts from this blog

html - Sizing a high-res image (~8MB) to display entirely in a small div (circular, diameter 100px) -

java - IntelliJ - No such instance method -

identifier - Is it possible for an html5 document to have two ids? -