0 votes
73 views
in HTML by (2.2k points)
edited
How do you add borders and shadows to a card in CSS?

1 Answer

0 votes
by (98.9k points)
selected by
 
Best answer

Use the border and box-shadow properties in CSS to add borders and shadows to a card. Here's an example:

.card {
  border: 1px solid #ccc;
  box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

Related questions

0 votes
1 answer 69 views
0 votes
1 answer 73 views
asked Jun 12, 2023 in HTML by radhe (2.2k points)
0 votes
1 answer 117 views
asked Jun 12, 2023 in HTML by radhe (2.2k points)
0 votes
1 answer 78 views
0 votes
1 answer 83 views
0 votes
1 answer 92 views
asked Jun 12, 2023 in HTML by radhe (2.2k points)

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

535 users

...