Answers for "css to style image"

CSS
1

css image

/* CSS for Desktop */

.country-background-img {
  background: url('https://placeimg.com/1000/695/animals');
  background-repeat: no-repeat;
  background-size: cover;
  height: 695px;
  padding: 60px 30px 0 30px;
  margin-top: 50px;
}


/* Responsive CSS */

.country-background-img {
  height: auto;
  text-align: center;
  background-attachment: fixed;
}
Posted by: Guest on December-12-2021
0

how to style a particular image in css

.image1
{
width:200px;
height:200px;
}
.image2
{
width:300px;
height:300px;
}
Posted by: Guest on November-25-2021

Browse Popular Code Answers by Language