keyboard_arrow_up

Tags / main part

Image fit

Second-part support false
Containing bugs false

last edited

This class can be added to the img-element. With this class you can set any ratio for an image without stretching the image, the image wil be contained within its frame and behave a bit like a background-iamge. So you won't have to use a div with a background-image, a container or manually crop the image in a photo-editor.

                        class="img-fit"
                    
                            class="img-fit-t"
                        
                            class="img-fit-b"
                        
                            class="img-fit-l"
                        
                            class="img-fit-r"
                        
                            class="img-fit-y"
                        
                            class="img-fit-x"