-
Notifications
You must be signed in to change notification settings - Fork 0
/
index copy.html
131 lines (113 loc) · 3.28 KB
/
index copy.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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Centro Integrado de FP</title>
<style>
*{
margin: 0;
padding: 0;
}
/* button{
background-image: url("bars-solid.svg");
background-repeat: no-repeat;
background-position-x: center;
background-position-y: center;
background-size: 80%;
height: 50px;
width: 50px;
border-radius: 1em;
}/*
/*Quitar los puntos*/
a {
text-decoration: none;
}
/*Quitar los puntos*/
ul {
font-size:30px /*1.5em*/;
font-family: "Arial";
list-style-type: none;
display: flex;
flex-direction: column;
}
li a{
display: flex;
/*poner el color segun*/
background-color: azure;
height: 40px;
/*para centrar el menu*/
align-items: center;
justify-content: center;
}
li a:hover{
background-color: blue;
color: azure;
}
/*Estilo icono de menu*/
.menu {
background-image: url("bars-solid.svg");
background-repeat: no-repeat;
background-position-x: center;
background-position-y: center;
background-size: 80%;
height: 50px;
width: 50px;
border-radius: 1em;
display: inline-block;
}
/*Vista movil*/
span{
display: flex;
justify-content: space-between;
/*si las imagenes son del mismo tamaño , mejor poner align-items: center*/
align-items: baseline;
}
img{
width: 60px;
}
header{
background-color: burlywood;
}
@media(min-width:600px){
.menu{
display: none;
}
ul{
flex-direction: row;
justify-content: space-evenly;/*si ponemos, en la li(flex-grow: 1),esta propiedad sobraría co*/
}
li{
/*-flex-grow: 1;*/
width: 20%;/*Con este, hay que poner al ul justify content: space-evenly*/
}
nav{
display: flex;
}
ul{
flex-grow: 1;
align-items: center;
}
}
</style>
</head>
<body>
<header>
<nav>
<span>
<a href="#">
<img src="logoEby.png" alt="logoEby">
</a>
<button class="menu"></button>
</span>
<ul>
<li><a href="#">El Centro</a></li>
<li><a href="#">Contacto</a></li>
<li><a href="#">Oferta</a></li>
<li><a href="#">Alumnado</a></li>
</ul>
</nav>
</header>
</body>
</html>