How to change the size of an image inserted with the ::before pseudo-element in CSS?
here is my code
.smile::before {
    content: url(../../../../Pictures/Smilie.jpg);
    height: 100px;
    width: 100px;
}
What am I missing?
How to change the size of an image inserted with the ::before pseudo-element in CSS?
here is my code
.smile::before {
    content: url(../../../../Pictures/Smilie.jpg);
    height: 100px;
    width: 100px;
}
What am I missing?
 
    
     
    
    Hi why dont you add your image as a background image and add the following
.smile::before{
  content: ' ';
  background-image: url(../../../../Pictures/Smilie.jpg);
  background-size:contain;
  height: 100px;
  width: 100px;
 }
A good solution to your question is that you have to use your image as a background.
.smile::before{
   content: ' ';
   background: url(../../../../Pictures/Smilie.jpg);
   background-size:contain;
   height: 100px;
   width: 100px;
   display: inline-block;
}
