Single page website
I have a single page website (one page only). I can navigate with a menu to get to different parts of the page with anchor name, just like (see sidebar):
Hide the other stuff
I want to hide stuff that does not belong the the current active page part and just show the information of the part that I'm looking at.
Question(s)
- Can I hide stuff that is not a part of the current #anchor_part with only CSS?
- Have you seen any sites already doing this?
yes you can do this with only css,first creat < div > with a specific width and height and overflow to hidden,then place your stuff in this div beside eachother
something like above; note that you can use this html/css if you have a constant height,the height of your stuff should be the same.
Working Example
Try this Html
and Css