F. Esquinas redondas (border-radius)

Ejemplo

Salida

Ábrelo en otra pestaña.

Revísalo en gilpgedit.

1<!DOCTYPE html>
2<html lang="es">
3<head>
4 <meta charset="UTF-8">
5 <meta name="viewport"
6 content="width=device-width,
7 initial-scale=1.0">
8 <title>border-radius</title>
9 <style>
10 body {
11 color:yellow
12 }
13
14 h1 {
15 background-color: blue;
16 border-top-right-radius: 10px;
17 border-top-left-radius: 5px;
18 border-bottom-right-radius:
19 20px;
20 border-bottom-left-radius:
21 2rem
22 }
23
24 div {
25 background-color: royalblue;
26 padding: 0.5rem 1rem;
27 border-radius: 30px
28 }
29
30 p {
31 background-color: blueviolet;
32 padding: 0.5rem 1.5rem;
33 border-radius:
34 10px 20px 30px 40px;
35 }
36 </style>
37</head>
38<body>
39 <h1>border-radius</h1>
40 <div>Esquinas</div>
41 <p>Redondas</p>
42</body>
43</html>
skip_previous skip_next