@kevinndlc
Submitted
Hello,
I'd like to know if there is a way to scroll horizontally wihtout having to press SHIFT while I'm scrolling ? If possible without JS :)
Thank you in advance, and feel free to give me other advices about my webapp.
@MarkoLukesevik
@kevinndlc
Submitted
Hello,
I'd like to know if there is a way to scroll horizontally wihtout having to press SHIFT while I'm scrolling ? If possible without JS :)
Thank you in advance, and feel free to give me other advices about my webapp.
@MarkoLukesevik
Posted
Nice work Kevin, if you want make horizontal scroll with pure css you can check this site: https://css-tricks.com/pure-css-horizontal-scrolling/ Its pretty easy, you just need to rotate the container 90 degrees counterclockwise so the bottom is to the right and then rotate the items back to correct-side up. everything is well explained here on the link for css-tricks. Hope this was helpful. Keep up the good work!
Marked as helpful
@Gabriela-hub-89
Submitted
@MarkoLukesevik
Posted
Nice work Gabriela, the easiest way to center the card is to use display flex, align-items: center, justify-content: center on the main tag. You can also try with margin: calc(50% - half of the card height) auto. Calc can work with any positioning too e.g. absolute, relative... Hope this was helpfull. Keep up the good work!