My hover effect is not working

Hover effect is not working on any class I want to apply hover effect.

1 Like

@akanshakaushik607
please share your code screenshot.

1 Like

@akanshakaushik607
here’s an example of how to apply a hover effect using a class in CSS:

HTML:

<div class="box">Hover over me</div>

CSS:

.box {
  background-color: #ccc;
  padding: 20px;
  border-radius: 10px;
  transition: background-color 0.2s ease;
}

.box:hover {
  background-color: #aaa;
}

1 Like

Now working, Thank you.

1 Like

@akanshakaushik607
Your welcome. :grinning:

1 Like