0 votes
78 views
in HTML by (2.2k points)
edited
How do you style a card with CSS to achieve a desired look?

1 Answer

0 votes
by (98.9k points)
edited

You can style a card using CSS properties such as background-color, border, padding, margin, font-size, color, and more. Here's an example:



.card {
  background-color: #f0f0f0;
  border: 1px solid #ccc;
  padding: 20px;
  margin: 10px;
  font-size: 16px;
  color: #333;
}

Related questions

0 votes
1 answer 93 views
asked Jun 12, 2023 in HTML by radhe (2.2k points)
0 votes
1 answer 74 views
asked Jun 12, 2023 in HTML by radhe (2.2k points)
0 votes
1 answer 71 views
0 votes
1 answer 93 views
0 votes
1 answer 64 views
asked Jun 12, 2023 in HTML by radhe (2.2k points)
0 votes
1 answer 85 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

537 users

...