I want to basically have each of the boxes on the left clickable, or to be hovered, and upon hovering/clicking the content on the right to change, based on the selection.
I’m fairly new to javascript/jquery but assume that is what is needed.
Does anyone know of a similar code snippet I could learn from? I don’t want to be given the exact code, but a point in the right direction so I can learn would be great!
I’m actually quite stumped now that I try to think about it, what is holding me back is the “unevenness” if that is even a word, of each layer of boxes. So for the first one, it’s obviously only one, the next two and third 3.
I think first off, I would hold it all in one container, and for each row of boxes, I would do just that, create a row, but each box would be it’s own div? Just sounds messy to me.
I keep thinking UL and LI but I am getting confused at the different layers.
I’m in over my head, but determined to figure this out, hehe.
It’s an awkward setup…perhaps using area/map might be suitable for you? It might eliminate some CSS potential though.
You also have to think about how you want to handle this in smaller screens. I understand how awkward it might be. I’d probably use Flexbox depending on your browser support requirements (e.g. look at flex-direction to start at the bottom)
You’d have 3 columns with that. Stacking images (or empty anchors to be the blue boxes)
Thanks for that. I used what you have an have attempted it with the following code:
You can see that I got it to work, but am not necessarily “replacing” the div, it is showing up to the right of the that is hidden, if you hover over the second row
So it is still a bit off.
As far as flex box, I figured once I can get the functionality part down, I could rewrite this to work with flexbox?