0 votes
74 views
in HTML by (2.2k points)
edited
How do you create a hover effect on a card using CSS?

1 Answer

0 votes
by (98.9k points)
edited

Use the :hover pseudo-class in CSS to apply styles when hovering over a card. Here's an example:

.card:hover {
  background-color: #e0e0e0;
}

Related questions

0 votes
1 answer 101 views
0 votes
1 answer 105 views
asked Jun 12, 2023 in HTML by radhe (2.2k points)
0 votes
1 answer 111 views
0 votes
1 answer 118 views
asked Jun 12, 2023 in HTML by radhe (2.2k points)
0 votes
1 answer 82 views
0 votes
1 answer 89 views

Doubtly is an online community for engineering students, offering:

  • Free viva questions PDFs
  • Previous year question papers (PYQs)
  • Academic doubt solutions
  • Expert-guided solutions

Get the pro version for free by logging in!

5.7k questions

5.1k answers

108 comments

557 users

...