-
Notifications
You must be signed in to change notification settings - Fork 0
/
ed03_2-fernandez_caballero_jose_cielo.css
140 lines (116 loc) · 2.18 KB
/
ed03_2-fernandez_caballero_jose_cielo.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
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
132
133
134
135
136
137
138
139
140
/* Reset básico para asegurar consistencia en todos los navegadores */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: Arial, sans-serif;
}
/* Estilos globales */
body {
background-color: #8b4c4c3b;
color: #000000;
line-height: 1.6;
margin: 20px;
}
h1 {
color: #ffffff;
}
h2 {
color: #333;
}
header {
background-color: #003cff;
color: white;
padding: 15px;
text-align: center;
}
nav {
background-color: #333;
padding: 10px;
}
nav ul {
display: flex;
justify-content: center;
list-style: none;
}
nav ul li {
margin: 0 15px;
}
nav ul li a {
color: white;
text-decoration: none;
padding: 5px 10px;
border-radius: 5px;
transition: background-color 0.3s;
}
nav ul li a:hover {
background-color: #9daf4c;
}
section {
margin: 20px 0;
padding: 20px;
background-color: #fff;
border-radius: 10px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
h2 {
margin-bottom: 10px;
}
p {
font-size: 18px;
color: #555;
margin-bottom: 15px;
}
/* Estilo para formularios */
form {
display: flex;
flex-direction: column;
}
form label {
margin: 10px 0 5px 0;
}
form input, form textarea, form button {
padding: 10px;
margin-bottom: 10px;
border: 1px solid #ccc;
border-radius: 5px;
}
form button {
background-color: #4CAF50;
color: white;
cursor: pointer;
border: none;
transition: background-color 0.3s;
}
form button:hover {
background-color: #45a049;
}
/* Estilo para imágenes */
img {
max-width: 100%;
height: auto;
display: block;
margin: 0 auto;
border-radius: 10px;
}
/* Footer */
footer {
background-color: #333;
color: white;
text-align: center;
padding: 10px;
margin-top: 20px;
border-radius: 10px;
}
/* Media queries para hacerlo más adaptable */
@media (max-width: 768px) {
nav ul {
flex-direction: column;
}
section {
padding: 15px;
}
form input, form textarea, form button {
width: 100%;
}
}