help with positioning

need some help
25 Replies
Jochem
Jochem•2y ago
please read the #How To Ask Good Questions thread
Cosy
CosyOP•2y ago
what i see when its tabbed in and what i see when the tab is resized even a bit. yeah the waves been waving around the page xD
Cosy
CosyOP•2y ago
so my question is how to align the waves always as it is shown in picture 2 yeah i was getting into the question mb didnt quite know how to insert 2 images in first post message
Jochem
Jochem•2y ago
we'll still need code to be able to help 🙂
Cosy
CosyOP•2y ago
aight btw since the media images dont load is there any tag to insert splash images instead to better show my point? in codepen ^
Jochem
Jochem•2y ago
you can replace the source with an unsplash url or https://picsum.photos/640/480
Cosy
CosyOP•2y ago
alr
Jochem
Jochem•2y ago
replace the numbers with the resolution you want, it's a random image every time
Cosy
CosyOP•2y ago
oh the neseccary images are background images so i probably wont be needing to set the resolution because of background cover so how do i remove the resolution?
Jochem
Jochem•2y ago
you have to set one, I think... just pick whatever's sensible
Cosy
CosyOP•2y ago
my friend suggested this "https://unsplash.it/1000" for random splash images. im using it for the background images xd https://codepen.io/CosyXD/pen/WNgdjog so here's the code
Mannix
Mannix•2y ago
stop using position to position stuff on your page. I know how it sounds but trust me on this 🙂
b1mind
b1mind•2y ago
Its so tempting when learning and you think oh thats how I can do layouts and so bad at the same time xD
Mannix
Mannix•2y ago
if that wave is suppose to be a part of the header then put in the header not in the next section 🙂
Cosy
CosyOP•2y ago
how do i position it then xd
Avinash
Avinash•2y ago
whats wrong with using positions if you dont mind answering think @mannix_
Cosy
CosyOP•2y ago
also whenever i create a new element like section and div it links to the about section i dont want it to be part of the about section and rather below the aboout section and link to the body
Mannix
Mannix•2y ago
https://codepen.io/MannixMD/pen/LYJemaE let me be clear avoid using position for layout purposes there is flexbox and grid for that you can see what is wrong by looking at the images op posted you run into isusse like those when using position to layout stuff on your page
Cosy
CosyOP•2y ago
how'd you position it like that without using position?
Jochem
Jochem•2y ago
it's just part of the flow, I think? like, it's the next element after the header, so it's right underneath it
Cosy
CosyOP•2y ago
oh
Mannix
Mannix•2y ago
yes i just put it where i wanted it to display in html
Jochem
Jochem•2y ago
The best rule to remember is that you should hint at the browser where things should be, not tell it explicitly. Use relative values, use the HTML structure, use things like flex and grid if you need to, but generally (and that's a big "it depends") avoid absolute positioning unless you really need it have you followed Kevin's course Conquering Responsive Layouts? If not, it's free, and it might help you learn more ways to get the layouts you want
Cosy
CosyOP•2y ago
alr i ought to learn how to use grid too
Jochem
Jochem•2y ago
it's a good tool, yeah
Want results from more Discord servers?
Add your server