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 290 07-26-2023, 07:03 PM
Last Post: Qomplainerz
  How to make a flexbox in CSS3 Qomplainerz 0 295 07-26-2023, 07:02 PM
Last Post: Qomplainerz
  How to make animations with CSS3 Qomplainerz 0 279 07-26-2023, 07:01 PM
Last Post: Qomplainerz
  How to make transitions with CSS3 Qomplainerz 0 321 07-26-2023, 06:59 PM
Last Post: Qomplainerz
  How to make shadows with CSS3 Qomplainerz 0 268 07-26-2023, 06:58 PM
Last Post: Qomplainerz
  How to make gradients with CSS3 Qomplainerz 0 259 07-26-2023, 06:57 PM
Last Post: Qomplainerz

Forum Jump:


Users browsing this thread: 6 Guest(s)