Skip to content

Commit d63c35c

Browse files
committed
Arreglo viewBox en el SVG y lo ponemos 'sticky'
1 parent 3be6818 commit d63c35c

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

2023-02-16/estilos.css

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,3 +72,11 @@ table th {
7272
text-align: left;
7373
}
7474

75+
svg {
76+
width: 6rem;
77+
height: 5rem;
78+
position: sticky;
79+
object-fit: cover;
80+
top: 0;
81+
right: 0;
82+
}

2023-02-16/pagina-web.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,7 @@ <h1><span class="moderno">Otro título</span></h1>
4141
xmlns="http://www.w3.org/2000/svg"
4242
version="1.1"
4343
baseProfile="full"
44-
width="300"
45-
height="200"
44+
viewBox="0 0 300 200"
4645
>
4746
<rect id="rrr" width="100%" height="100%" fill="red" />
4847
<circle cx="150" cy="100" r="80" fill="green" />

0 commit comments

Comments
 (0)