Sesión 12 - Las tablas II

 HTML 
<!DOCTYPE html>
<html lang="es-ES">
<head>
    <meta charset="UTF-8">
    <title>Tablas de nivel I</title>
    <link rel="stylesheet" href="Pr%C3%A1ctica%2012%20HTML.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 I
*/

h1{
    text-align: center;
    text-shadow: 1px 1px 1px grey;
}

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

th{
    background-color: #45f867;
    color: black;
}

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

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

Comentarios

Entradas populares de este blog

Comparando aPPs - 3 (Picmonkey)