-2
As you have not put any code, I will pass you a solution that should be adjusted by you in your code.
Following:
- Let’s assume that all posts have a class, for this example:
post
. - As we can see, they follow a logic where all odd-number posts are on the left and all even-numbered should be on the right.
You can use the selector
nth-child
to achieve the desired effect by adding to your CSS:.post:nth-child(odd) { clear: both; }
The
.post:nth-child(odd)
will select everything that contains the classpost
odd-numbered and will apply theclear: both
that will release everything on your side and throw you down. You can also achieve the same effect with aclear: left;
that will release only the left.
Felipe, take the Stack Overflow tour and learn the most effective way to ask questions, an answer will come faster.
– Bsalvo
Only with the
DreamWeaver
and without code it will be difficult– Isac