Account Deleted
Hello.
The triangle isn't attached to anything so it will move whatever it wants depending on the resolution.
I don't want to change too much your code, so I'll give you 3 simple steps to fix this:
-
In the HTML put
triangle-container
inside offloating
-
set the next properties in
.triangle-container
.triangle-container {
bottom: 0;
right: 0;
position: absolute;
}
- change the following in
.triangle
BEFORE
.triangle {
...
transform: translate(-329%, -150%);
}
AFTER
.triangle {
...
transform: translateY(20px);
}
The best solution would be using ::before
and ::after
pseudo-elements to make this type of shape but that would require changing some of your code.
Let me know if you have any doubt.
Update: the background image is full height and doesn't correspond with the design.
You can easily fix this:
@media (min-width: 500px) and (orientation: landscape)
body {
background-image: url(/images/bg-desktop.png);
background-size: 100% 50%; // <--- x, y
background-repeat: no-repeat;
background-position: bottom;
}
@aokdirova
Posted
@juanmesa2097 Thanks a lot! Fixed it as per your recommendations!
Account Deleted
@aokdirova it was nothing. I'm glad it helped.