Answers for "center text in image css"

CSS
1

center align an image css

<img src="myImg.png" class="center">

.center {
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 50%;
}
Posted by: Guest on January-28-2021
0

how to center an image in css

.center {
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 50%;
}
Posted by: Guest on July-22-2020
4

css text image

background-image: url(pathToImage);
background-size: 100%;
color: transparent;
-webkit-background-clip: text;
Posted by: Guest on January-10-2021

Browse Popular Code Answers by Language