Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to make rounded corners with CSS3
#1
Example:

<!DOCTYPE html>
<html>
<head>
  <title>Rounded Corners Example</title>
  <style>
    /* Apply rounded corners to the div element */
    div {
      width: 200px;
      height: 100px;
      background-color: lightblue;
      border-radius: 10px;
    }
  </style>
</head>
<body>
  <div>This div has rounded corners.</div>
</body>
</html>

Explanation:

CSS property border-radius is used to create rounded corners for elements with a border. In this example, the div element has its background color set to light blue and is given rounded corners with a radius of 10 pixels.
Also follow me on Youtube for videos about video games:
https://www.youtube.com/channel/UCxfkGVU...2mQ/videos
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  How to make a grid layout with CSS3 Qomplainerz 0 294 07-26-2023, 07:03 PM
Last Post: Qomplainerz
  How to make a flexbox in CSS3 Qomplainerz 0 299 07-26-2023, 07:02 PM
Last Post: Qomplainerz
  How to make animations with CSS3 Qomplainerz 0 281 07-26-2023, 07:01 PM
Last Post: Qomplainerz
  How to make transitions with CSS3 Qomplainerz 0 323 07-26-2023, 06:59 PM
Last Post: Qomplainerz
  How to make shadows with CSS3 Qomplainerz 0 271 07-26-2023, 06:58 PM
Last Post: Qomplainerz
  How to make gradients with CSS3 Qomplainerz 0 262 07-26-2023, 06:57 PM
Last Post: Qomplainerz

Forum Jump:


Users browsing this thread: 2 Guest(s)