HTML Introduction to HTML and CSS Make It Beautiful With CSS Test: Styling by Element and Class

Ben Neel
Ben Neel
952 Points

How do I make a border curved?

<!doctype html>
    <link href="styles.css" rel="stylesheet">

    <p class="main-pg">My amazing website</p>

.main-pg {
    border:solid red 4px;

1 Answer

Hi Ben! - You would do this with border-radius. For example:

.main-pg {
  border: 4px solid red;
  border-radius: 5px;

Happy coding!