(CSS) Making a Menu Float Vertically
Author | Message |
---|---|
Kleader | # Posted one week ago |
![]() |
Hi |
Ads | |
Bougnoulz | # Posted yesterday |
![]() |
Its possible in CSS have a look at the |
Kim Jong Un | # Posted yesterday |
![]() |
You can use the |
Demand3d | # Posted yesterday |
![]() |
I don't see a floating menu on the site. Or do you mean the horizontal axis thing? Because that is JS not CSS |
Kegon | # Posted two hours ago |
![]() |
One common approach is using CSS Grid or Flexbox combined with : position: sticky; position: sticky; makes the menu "stick" to the viewport once it reaches a defined offset (top: 0; in this case).Unlike fixed, sticky works within its containing element. If the parent element scrolls out of view, the menu will no longer stick. It avoids the need for hardcoded values like left or right. |
Celeri | # Posted two hours ago |
![]() |
What Kegon has said, turned into code: <!DOCTYPE html> Do note that this isn't 100% identical to what you are describing. You will need additional CSS for transition timing, etc. Maybe even slight JavaScript, although most of the effects can be achieved in simple CSS. |
Kleader | # Posted one hour ago |
![]() |
Thanks! I will try using |
Rel0ad | # Posted one hour ago |
![]() |
Literally the Flexbox tutorial ;) From the very first page of this site. |
Kleader | # Posted 7 minutes ago |
![]() |
LOL! Thanks again, I'll use the search function more often maybe :D |
Post a reply
Please be kind and courteous in your replies. Don't roast others for no reason.