Search
 
SCRIPT & CODE EXAMPLE
 

CSS

How to make an image fill its container without stretching

.cover {
  object-fit: cover;
  width: 50px;
  height: 100px;
}
Comment

css resize image to fit div no stretching

.div {
  background-image: url(../images/your-image.png);
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
}
Comment

PREVIOUS NEXT
Code Example
Css :: Remove Or Hide Default Spinner Input Number 
Css :: customize highlight color website 
Css :: bootstrap media queries 
Css :: css disable user interaction 
Css :: css ecken abrunden 
Css :: vertcial text css 
Css :: css width fit to content 
Css :: how to blur background image in css 
Css :: ignore cache pip 
Css :: responsive container css 
Css :: how to center divs in css 
Css :: grid center align 
Css :: highlight table row on hover 
Css :: schatten css 
Css :: css space between td 
Css :: absolute position div center 
Css :: font smoothing 
Css :: div nebeneinander 
Css :: css limit text length 
Css :: hide horizontal scrollbar css 
Css :: posicionar div centro da tela 
Css :: grid repeating auto columns 
Css :: how to stop browser from swipe left to right history-navigation javascript 
Css :: how to css with data arrtibute 
Css :: hvad er css 
Css :: remove site title squarespace 
Css :: css invert text color 
Css :: css underline 
Css :: Push an existing folder to git 
Css :: css border properties 
ADD CONTENT
Topic
Content
Source link
Name
2+1 =