Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

crop image to fit in a div box?

Status
Not open for further replies.
Hi

Sizing Objects: the object-fit property said:
The [tt]object-fit[/tt] property specifies how the contents of a replaced element should be fitted to the box established by its used height and width.
( CSS Images Module Level 4 | 5. Sizing Images and Objects in CSS | 5.1. Sizing Objects: the object-fit property )

As I understand, if you not specify a different width and/or height for the image, no fitting theory is applied.



Feherke.
feherke.github.io
 
Ah Ok.
I see how this is applied now. Thanks for the help again.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top