[ 3 / biz / cgl / ck / diy / fa / ic / jp / lit / sci / vr / vt ] [ index / top / reports ] [ become a patron ] [ status ]
2023-11: Warosu is now out of extended maintenance.

/ic/ - Artwork/Critique

Search:


View post   

>> No.3590840 [View]
File: 63 KB, 856x373, chrome_2018-09-04_18-10-57.png [View same] [iqdb] [saucenao] [google]
3590840

>>3590570
Nic/Banana didn't bind the <img> element to container proportion.

A simple
> width: 100%;
on the direct <img> element will fix this.
To be sure thou, it's best if they also put the exact height proportions on the container element, and then add to <img>
>height: 100%; *currently this will break because the height is 150px for some wierd reason, margin exists you guys.*

and,
> object-fit: cover;
if they want it to proportionally stretch over the container element, or
> object-fit: contain;
if they want it to keep to original proportions regardless of container element, but CONTAINED within it, so it deosnt "escape" bounds.

Navigation
View posts[+24][+48][+96]