4
Good evening, I have the following structure of Ivs: 1 | 2 | 3 | 4 | 5 | 6 What I need to do is that this structure looks like this:
1 | 3 | 5
2 | 4 | 6
A single detail, is that I need to do this only using CSS, without adding any more div in the structure. My code follows here:
OK Sergio, it works very well this way that it showed, but what if these Divis are generated dynamically?
– Daniel Swater
@Danielswater as well? must be the same... take a look here: https://jsfiddle.net/m1y8e18b/
– Sergio
So, is that actually I do not know the amount of Divs understood? Then I think I would not give p to apply Nth-Child
– Daniel Swater
@Danielswater I think Nth-Child is great for this. If you give me an example where this idea doesn’t work it says, I can take a look again.
– Sergio