Home > Software design >  Css is not editing this class. It works with the <img> tag but not the .tree class?
Css is not editing this class. It works with the <img> tag but not the .tree class?

Time:12-08

Css is not editing this class. It works with the tag but not the .tree class?

HTML Code:

<div class="firstblock">
       <img class="tree" src="tree.jpg"/>
   </div>

Css Code:

.tree{
  position: absolute;
  height: 100px;
  width: 10px;

CodePudding user response:

Edited my HTML and now it works. Maybe Visual Studio Code was bugged. I have no idea.

CodePudding user response:

It must be a css structure problem, like addine .tree after media queries or something..

If it's not the case try calling it using 'img.tree'

  • Related