I’d like to have a few options to choose from and show the selection as the main content. Similar to a picture lightbox etc but the thumbnails and main picture are html/content. I’d click a HTML box/div and it populates the larger/main box as the selection. I Could have used options <select> but images don’t work as options. selection box image
If you know of any efficient ways to do this via HTML, CSS or Javascript please let me know.
I’ve found this code here http://jsfiddle.net/EhtrR/1238/ but worried if it will be too much Javascript assuming I may have 20+ options on the page:
Usually you just use two colours, for selected and unselected.
Comment posted by Lowis
That is perfectly clean although instead of images I need DIV/html boxes if that makes sense. I’m thinking along the lines of getID of clicked and change from display:none > block to populate the inner html of the main box with the html that is selected?
Comment posted by Mohamed Ghoneim
do you mean that you have an div contains images and paragraphs and when you click on it all the contents appear in a bigger div . or you have a div with background image and when you click on it the image appears in anther div