I am designing a mobile website. On the homepage i have menu items say 'a' ,'b' ,'c',...,'h'. I want to display only first three menu items and make a 'View All Items' button that on clicking expands to show all the items.Also the button should become 'Show Less Items' after clicking on it.
I want to do this using only HTML5 and CSS3 and no JavaScript. Also i want this functionality to be reusable around the website.
How should i do it?
--Thanks in advance!