From 413c9613f124bcc8b2549f9ea0e0d3e5b5628fde Mon Sep 17 00:00:00 2001 From: Ferran Soto Date: Mon, 29 Apr 2019 13:15:42 +0200 Subject: [PATCH] PAC 1 --- m1/index.html | 120 ++++++++++++++++++++++++++++++++------------------ m1/style.css | 103 ++++++++++++++++++++++++++++++++++++++++++- 2 files changed, 179 insertions(+), 44 deletions(-) diff --git a/m1/index.html b/m1/index.html index 3e954d7..61ec076 100644 --- a/m1/index.html +++ b/m1/index.html @@ -3,56 +3,92 @@ EXERCICI HTML-CSS + - - - - - - - Mi sitio web - - - Inicio - Blog - Sobre mi - Fotos - Portfolio - Contacto - Enlaces - - - - -

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean ornare sapien ac nibh vulputate feugiat. Morbi euismod velit sit amet libero volutpat ultrices in quis sem. Sed sit amet placerat sem. Curabitur vitae lectus nec purus accumsan faucibus. Donec vitae volutpat tortor. Suspendisse tempor rutrum urna, in consequat est tincidunt vitae. Cras et ligula at felis placerat tempor. Fusce elementum metus non justo luctus iaculis.

-

Donec ligula arcu, sagittis lacinia nibh et, consequat gravida turpis. Aenean nec scelerisque felis. Integer nec odio sed lorem mattis rhoncus quis quis nibh. Praesent non fringilla nisi. Duis porta placerat mattis. Aenean in mollis odio, at egestas massa. Quisque in lectus magna. Vestibulum vel faucibus massa, vel varius tortor. Maecenas et laoreet neque, ut semper neque. Suspendisse aliquet, nisl vel pharetra ultricies, elit felis molestie sem, ac scelerisque turpis tortor non lacus.

- - + + Mi sitio web + - Categoría 1 - Categoría 2 - Cateogría 3 - Categoría 4 - Categoría 5 + + +
- 2. Archivo - Marzo 2019 - Febrero 2019 - Enero 2019 - Diciembre 2018 + + +
+ Koala +
+ Figura: descripción foto +
+
+ +
+

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean ornare sapien ac nibh vulputate feugiat. Morbi euismod velit sit amet libero volutpat ultrices in quis sem. Sed sit amet placerat sem. Curabitur vitae lectus nec purus accumsan faucibus. Donec vitae volutpat tortor. Suspendisse tempor rutrum urna, in consequat est tincidunt vitae. Cras et ligula at felis placerat tempor. Fusce elementum metus non justo luctus iaculis.

+

Donec ligula arcu, sagittis lacinia nibh et, consequat gravida turpis. Aenean nec scelerisque felis. Integer nec odio sed lorem mattis rhoncus quis quis nibh. Praesent non fringilla nisi. Duis porta placerat mattis. Aenean in mollis odio, at egestas massa. Quisque in lectus magna. Vestibulum vel faucibus massa, vel varius tortor. Maecenas et laoreet neque, ut semper neque. Suspendisse aliquet, nisl vel pharetra ultricies, elit felis molestie sem, ac scelerisque turpis tortor non lacus.

+
- 3. Enlaces - Enlace 1 - Enlace 2 - ... - Enlace 5 +
+
+ + + diff --git a/m1/style.css b/m1/style.css index b3bc789..b00a010 100644 --- a/m1/style.css +++ b/m1/style.css @@ -1,3 +1,13 @@ +html{ + margin: 0; + padding: 0; + font-family: Verdana, Geneva, Tahoma, sans-serif; + font-size: 120%; + line-height: 160%; + background-color: #F2F5FE; + background-image: url("fondo.gif"); + background-repeat: repeat-x; +} /* El bloque de reset tendrá las siguientes características: . márgenes, padding, fuente (verdana, sans-serif con tamaño 120% y altura 160%) y fondo con color (#F2F5FE) e imagen (fondo.gif) repetida @@ -6,13 +16,38 @@ en el eje horizontal */ /* El contenedor tendrá las siguientes características: ancho 80% color de fondo blanco */ + body{ + margin: 0 auto; + width: 80%; + background-color: #fff; + } + /*La cabecera de la página contendrá el título con enlace al directorio del contenido de la página. Las características serán: Fondo: -Color:#233C9B -Padding: 10px; + Texto: color de texto: #FFF, fuente georgia, serif y tamaño 260%. Al pasar el mouse por encima tomará el color: #B5C4E3; Altura de línea: 35px*/ +header{ + background-color: #233C9B; + padding: 10px; + line-height: 35px; +} + +a{ + color: #FFF; + font-family: Georgia, 'Times New Roman', Times, serif; + font-size: 260%; + text-decoration-line: none; + line-height: 35px; + padding: 10px; + +} + +a:hover{ + color: #B5C4E3; + cursor: pointer; +} /* Al menú de navegación se le aplicará el siguiente formato: - Estará centrado con respecto a la cabecera @@ -24,15 +59,62 @@ Altura de línea: 35px*/ - El fondo del elemento será #253575 - Al pasar el mouse por encima adquirirá el color de fondo #31479B;*/ + #nav{ + width: 50%; + margin: 0 auto; + } + + #nav li{ + list-style: none; + display: inline; + } + + #nav a{ + padding: 5px; + font-size: 0.75em; + font-weight: bold; + background-color: #253575; + } + nav a:hover{ + background-color: #31479B; + } + +#fotografia{ + width: 50%; + margin: 0 auto; +} + +figure{ + width: 50%; + margin: 0 auto; +} + +img{ + width: 200px; + height: 200px; +} /* La sección principal tendrá las siguientes características: - ancho: 79% - relleno de texto superior, derecha, inferior, izquierda de 30px, 10px, 60px y 10px, respectivamente.*/ +#contenedor{ + /* float: left; */ + display: inline-block; + width: 79%; + padding: 30px 10px 60px 10px; +} + /* El elemento lateral tendrá las siguientes características: - ancho 19% - tamaño de fuente de 3/4 de la inicial +*/ +aside{ + float: right; + width: 19%; + font-size: 0.75em; +} /* El pie del documento tendrá las siguientes características: - tamaño de fuente de 3/4 de la inicial - relleno del texto 5px por arriba y abajo @@ -40,4 +122,21 @@ Altura de línea: 35px*/ - color de fondo: #233C9B - altura del elemento 40px; */ +footer{ + font-size: 0.75em; + background-color: #233C9B; + height: 40px; + width: 100%; +} + +footer p{ + color: #fff; + text-align: center; + width: 50%; + padding: 5px 0; + margin: 0 auto; +} +.clear{ + clear: both; +} \ No newline at end of file