aula:programacion:progamacion_html:ejemplo_div_y_span
Diferencias
Muestra las diferencias entre dos versiones de la página.
Ambos lados, revisión anteriorRevisión previaPróxima revisión | Revisión previa | ||
aula:programacion:progamacion_html:ejemplo_div_y_span [2020/12/17 22:07] – [Hojas de estilo] admin | aula:programacion:progamacion_html:ejemplo_div_y_span [2025/01/22 02:02] (actual) – editor externo 127.0.0.1 | ||
---|---|---|---|
Línea 1: | Línea 1: | ||
+ | ====== Ejemplo de div y span ====== | ||
+ | |||
+ | < | ||
+ | < | ||
+ | .caja-roja{border: | ||
+ | .espacio{width: | ||
+ | .espacio2{width: | ||
+ | .caja1{border: | ||
+ | .caja2-verde{border: | ||
+ | .caja3-azul{border: | ||
+ | .redondea { border-radius: | ||
+ | .redondea1 { border-radius: | ||
+ | </ | ||
+ | |||
+ | |||
+ | <div class=" | ||
+ | |||
+ | <div class=" | ||
+ | </ | ||
+ | |||
+ | <div class=" | ||
+ | |||
+ | <div class=" | ||
+ | </ | ||
+ | |||
+ | <div class=" | ||
+ | |||
+ | </ | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | <div class=" | ||
+ | </ | ||
+ | |||
+ | <div style=" | ||
+ | < | ||
+ | <p> | ||
+ | Esto es un párrafo dentro de un div, | ||
+ | <span style=" | ||
+ | </p> | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | < | ||
+ | | ||
+ | </ | ||
+ | </ | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | |||
+ | |||
+ | < | ||
+ | < | ||
+ | .caja-roja{border: | ||
+ | .espacio{width: | ||
+ | .espacio2{width: | ||
+ | .caja1{border: | ||
+ | .caja2-verde{border: | ||
+ | .caja3-azul{border: | ||
+ | .redondea { border-radius: | ||
+ | .redondea1 { border-radius: | ||
+ | </ | ||
+ | | ||
+ | | ||
+ | <div class=" | ||
+ | | ||
+ | <div class=" | ||
+ | </ | ||
+ | | ||
+ | < | ||
+ | | ||
+ | <div class=" | ||
+ | </ | ||
+ | | ||
+ | <div class=" | ||
+ | | ||
+ | </ | ||
+ | </ | ||
+ | </ | ||
+ | | ||
+ | <div class=" | ||
+ | </ | ||
+ | | ||
+ | <div style=" | ||
+ | < | ||
+ | <p> | ||
+ | Esto es un párrafo dentro de un div, | ||
+ | <span style=" | ||
+ | </p> | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | |||
+ | ====== Hojas de estilo ====== | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | | ||
+ | </ | ||
+ | </ | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | < | ||
+ | #miid {border-width: | ||
+ | </ | ||
+ | </ | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | < | ||
+ | SPAN.ver-ex { font-variant: | ||
+ | </ | ||
+ | </ | ||
+ | < | ||
+ | < | ||
+ | de este párrafo van en versalitas. | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | < | ||
+ | | ||
+ | </ | ||
+ | </ | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | para el año que viene. Este informe sienta las bases | ||
+ | para confrontar a Gran Jefe con los productos de la | ||
+ | | ||
+ | |||
+ | < | ||
+ | si bien ésta seguirá de momento en catálogo. | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | < | ||
+ | < | ||
+ | H1 { text-align: center} | ||
+ | </ | ||
+ | < | ||
+ | < | ||
+ | |||
+ | < | ||
+ | < | ||
+ | < | ||
+ | H1.madera {text-align: | ||
+ | </ | ||
+ | < | ||
+ | < | ||
+ | |||
+ | < | ||
+ | < | ||
+ | < | ||
+ | DIV.parrafos {text-align: | ||
+ | </ | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | < | ||
+ | < | ||
+ | BODY {text-align: | ||
+ | </ | ||
+ | < | ||
+ | ...el cuerpo está centrado... | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | < | ||
+ | < | ||
+ | | ||
+ | </ | ||
+ | </ | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | </ | ||
+ | |||
+ | |||
+ | </ | ||