I want to close in the outside border around the squares.
margin: 3px 0 0 3px;
Wait, it would start out as this then, right?
But this uses a negative margin.
margin: 0 0 3px -3px;
I think I would be using some kind of nth of type formula to do this.
But now I’m confused.
@PaulOB
.wrape .wrapper li:nth-of-type(n+11) a {
margin: ;
}
Everything I think would need to be shifted to the left 3px
and then shifted to the top or bottom 3px.
Keeping the spaces in-between.
Now I would only need to target the middle 3 cubes to separate them.
margin: 0 0 3px 0;
https://jsfiddle.net/zb6mkug3/447/
Erik_J
2
Use negative margins on the wrapper or its ul.
But as you fake the squares’ borders by using margins to show the background as borders, the fake outer borders will disappear.
Move the hidden rule to the wrapper or its ul and use real borders and see them cover the outside border, if you wish.
Matter solved in one post.
1 Like
asasass
3
Update:
I think I got it here:
.wrape .wrapper li:nth-of-type(3n+2) a {
margin: 0 3px 0 3px;
}
http://www.topdesignagencies.com/nth-test/
I did it:
Erik_J
4
I think so too.
Keep experimenting and you will find more ways to do it.
Like we all experimented in this dCode thread by @PaulOB:
3 Likes
system
Closed
5
This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.