Skip to content

Commit 80a526c

Browse files
committed
20240708_003
1 parent 9a3150f commit 80a526c

File tree

2 files changed

+18
-5
lines changed

2 files changed

+18
-5
lines changed

Entregas/PruebasEntrega/hechoPorMi/css/estilosCarrito.css

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,24 @@ a{
1919
color: var(--color-text);
2020
}
2121

22-
button{
23-
background-color: var(--color-body);
24-
color: var(--color-header);
25-
padding: 5px 10px;
22+
.button-buy {
23+
display: flex;
24+
justify-content: center; /* Centra horizontalmente */
25+
align-items: center; /* Centra verticalmente si es necesario */
26+
margin-top: 20px; /* Espaciado superior opcional */
27+
width: 80%; /* Misma anchura que la tabla */
28+
margin-left: auto;
29+
margin-right: auto;
30+
}
31+
32+
.btn002{/* BOTON COMPRAR ITEMS */
33+
background-color: var(--color-header);
34+
color: var(--color-body);
35+
padding: 15px 50px;
2636
border: unset;
2737
border-radius: 6px;
2838
cursor: pointer;
39+
2940
}
3041
a:hover:not(carrito:hover){
3142
color: var(--color-acento);

Entregas/PruebasEntrega/hechoPorMi/src/views/ComprasCarrito.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,9 @@ <h1>COMPRAS REALIZADAS</h1>
3434
</Tr>
3535
</Thead>
3636
<tbody id="carrito-items"></tbody>
37-
</TABLE>
37+
</TABLE><BR>
38+
<DIV class="button-buy">
39+
<button class="btn002" onclick="comprarCarrito()"> COMPRAR </button></DIV>
3840
</div>
3941

4042
</main>

0 commit comments

Comments
 (0)