miércoles, 3 de junio de 2020

LENGUAJE HTML 5 Y CSS 3 (Sesión 12)

HTML:
<!DOCTYPE html>
<html lang="es-ES">
<head>
<meta charset="UTF-8">
<title> Tablas de Nivel II </title>
<link rel="stylesheet" href="tablas2.css">
</head>
<body>

<h1> Jugando con Tablas Nivel II </h1>
<table> 
<caption>Jugando con Tablas de Nivel II</caption>
<tr>
<th>Posición</th>
<th>Sistema Operativo</th>
<th>Porcentaje</th>
</tr>
<tr> 
<td>1</td>
<td>Android</td>
<td rowspan="2">40%</td>
</tr>
<tr>
<td>2</td>
<td>Windows</td>
</tr>
<tr>
<td>3</td>
<td>Linux</td>
<td rowspan="2">20%</td>
</tr>
<tr>
<td>4</td>
<td>OS X</td>
</tr>
<tr>
<td>5</td>
<td colspan="2">Otros</td>
</tr>
</table>
</body>

</html>
—————————————————————————————————————-

CSS:
/* 
Creando Tablas de Nivel II
 */

h1{
text-align: center;
text-shadow: 1px 1px 1px black;
color: aqua;
}

table{
margin-top:50px;
caption-side: bottom;
margin-left: auto;
margin-right: auto;
border-collapse: collapse;
background-image: lineal-gradient(to left, beige, white);
box-shadow: 5px 5px 5px gray;
}

th{
background-color: black;
color: white;
}

caption{
padding-top: 20px;
font-style: italic;
color: aqua;
}

td,th{
border: 2px solid black;
padding-left: 20px;
padding-right: 20px;
padding-top: 10px;
padding-bottom: 10px;
}

No hay comentarios:

Publicar un comentario

LENGUAJE HTML 5 Y CSS 3 (Sesión 12)

HTML: <!DOCTYPE html> <html lang="es-ES"> <head> <meta charset="UTF-8"> <title>...