Menu
Newbedev LogoNEWBEDEV Python Javascript Linux Cheat sheet
Newbedev LogoNEWBEDEV
  • Python 1
  • Javascript
  • Linux
  • Cheat sheet
  • Contact

div crop by border radius in css code example

Example 1: css crop image to circle

background-image: url("url");
width:100px;
height:100px;
background-size:contain;
background-position:center;
border-radius:50%;

Example 2: crop image with circle css

.image-cropper {
  width: 100px;
  height: 100px;
  position: relative;
  overflow: hidden;
  border-radius: 50%;
}

img {
  display: inline;
  margin: 0 auto;
  height: 100%;
  width: auto;
}

Tags:

Html Example

Related

sql server boolean data type code example center display absulte code example .htaccess max upload size code example Write a menu driven program in python using text file to To count the vowels and consonants code example laravel route home auth code example restoring from pg_dump code example how to accept only integer value and float value in angular input box parrten code example css create a darker shade of a color code example c# remove element from list while iterating code example how to give all image same size in html code example styling a react component in css code example main method arguments in java code example

Recent Posts

Pandas how to find column contains a certain value Recommended way to install multiple Python versions on Ubuntu 20.04 Build super fast web scraper with Python x100 than BeautifulSoup How to convert a SQL query result to a Pandas DataFrame in Python How to write a Pandas DataFrame to a .csv file in Python
© 2021 newbedevPrivacy Policy