User Tools

Site Tools


web_design:tablas:tables

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
web_design:tablas:tables [2021/10/14 15:18]
mag in Spanish
web_design:tablas:tables [2023/08/16 09:33] (current)
Line 34: Line 34:
 ==== Celdas con Titulos ==== ==== Celdas con Titulos ====
  
-  * Let's add the heading row with five heading cells.+  * Agreguemos una fila con cinco celdas y cada una con un titulo
 <code><table> <code><table>
   <thead>   <thead>
Line 49: Line 49:
   </tbody>   </tbody>
 </table></code> </table></code>
-  * <html><tr></html> signifies the table row+  * <html><tr></html> significa la fila de la tabla
-  * <html><th></html> signifies a table heading cell+  * <html><th></html> significa una celda de encabezado de tabla
-  * Run the code to see the resultsRight nowthere is no borderbut the headings are automatically bold.+  * Ejecute el código para ver los resultadosEn este momento, no hay bordepero los títulos se muestran automáticamente en negrita.
  
 ==== Celdas con Datos ==== ==== Celdas con Datos ====
  
-  * Let's add a line of data.+  * Agreguemos una fila de datos
 <code><table> <code><table>
   <thead>   <thead>
Line 76: Line 76:
   </tbody>   </tbody>
 </table></code> </table></code>
-  * You can see that the data row follows the same structure as the header rowbut the cells are labelled <html><td></html> (table datainstead of <html><th></html> (table header). +  * Puede ver que la fila de datos sigue la misma estructura que la fila del encabezadopero las celdas están etiquetadas <html><td></html> (datos de la tablaen lugar de <html><th></html> (encabezado de la tabla). 
-  * Complete 3 more lines yourself using the following data.+  * Complete 3 líneas más utilizando los siguientes datos
  
-Name Surname Nationality Age Position ^+Nombre Apellido Nacionalidad La Edad Posición ^
 | David | Ospina Ramírez | Colombia | 33 | Portero | | David | Ospina Ramírez | Colombia | 33 | Portero |
 | Carlos | Eccehomo Cuesta Figueroa | Colombia | 22 | Defensa | | Carlos | Eccehomo Cuesta Figueroa | Colombia | 22 | Defensa |
Line 85: Line 85:
 | Radamel Falcao | García Zárate | Colombia | 35 | Delantero | | Radamel Falcao | García Zárate | Colombia | 35 | Delantero |
  
-  * How did you goDoes the table look right+  * ¿Como fuiste¿La tabla se ve bien?  
-  * Notice that the width of each column changed to fit the width of the largest cell (longest text). Tables are clever like that+  * Observe que el ancho de cada columna cambió para ajustarse al ancho de la celda más grande (texto más largo). Las tablas son así de ingeniosas.  
-  * This will be more obvious when we show the borders.+  * Esto será más obvio cuando mostremos las fronteras
  
 ==== Bordes ==== ==== Bordes ====
  
-  * Add the following CSS code to display the border.+  * Agregue el siguiente código CSS para mostrar el borde.
 <code>td, th { <code>td, th {
   border-width: 1px;   border-width: 1px;
   border-style: solid;   border-style: solid;
 }</code> }</code>
-  * Notice that we have applied the style rules to both <html><th></html> and <html><td></html> by separating them with a comma+  * Observe que hemos aplicado las reglas de estilo a ambos <html><th></html> <html><td></html> separándolos con una coma
-  * Now you can clearly see the structure of the table+  * Ahora puede ver claramente la estructura de la tabla
-  * For instanceyou can see that in data cellstext is aligned to the left by defaultwhile in header cellstext is center aligned+  * Por ejemplopuede ver que en las celdas de datosel texto está alineado a la izquierda de forma predeterminadamientras que en las celdas de encabezadoel texto está alineado al centro.  
-  * You will also notice that the left-aligned text is right on the edge of the cellwhich is is harder to readWe'll fix this in the next section.+  * También notará que el texto alineado a la izquierda está justo en el borde de la celdaque es más difícil de leerArreglaremos esto en la siguiente sección.
  
-[[web_design:horario:margins_padding|NextMargins and Padding]]+[[web_design:tablas:relleno|SiguienteRelleno y Visualización]]
web_design/tablas/tables.1634249904.txt.gz · Last modified: 2023/08/16 09:33 (external edit)