Maquetacion
Publicado por David (2 intervenciones) el 04/05/2021 15:42:21
Hola.. Estoy intentando hacer la maquetaciónd e un sitio, pero no me sale lo que intento progrmar.

El código que estoy intentando hacer es este:
HTML:
CSS

El código que estoy intentando hacer es este:
HTML:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="normalize.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.6/css/bootstrap.min.css" integrity="sha384-rwoIResjU2yc3z8GV/NPeZWAv56rSmLldC3R/AZzGRnGxQQKnKkoFVhFQhNUwEyJ" crossorigin="anonymous">
<link rel="stylesheet" href="style.css" type="text/css" />
</head>
<body>
<div class="contenedor">
<div class="header">
<div class="hlinks">
<div class="hlink"><a href="#">Link 1</a></div>
<div class="hlink"><a href="#">Link 2</a></div>
<div class="hlink"><a href="#">Link 3</a></div>
</div>
<div class="htitulo">
<div class="enlasa">TÍTULO</div>
</div>
</div>
<div class="nav">Navegación</div>
<div class="contenido">Contenido</div>
<div class="footer">Footer</div>
</div>
</body>
</html>
CSS
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
* {
margin: 0px;
padding: 0px;
}
.contenedor {
width: 100%;
height: 1000px;
background-color: white;
margin: auto;
}
.header {
height: 300px;
background-color: #1b2a2b;
}
.hlink {
width: 100%;
height: 15px;
background: rgb(90, 48, 90);
}
.hlinks {
display: inline-block;
}
.htitulo {
background: tomato;
}
.enlasa {
color: white;
font-size: 72px;
margin: auto;
}
.nav {
height: 70px;
background: #ffffff;
}
.contenido {
height: 300px;
background: #d4d4d4;
padding: 5px;
}
.footer {
background: #2b2a2a;
height: 100px;
color: white;
}
Valora esta pregunta


0