Which would you say is the most reliable?
What are your thoughts on how Grid is set up?
Which is the best, which is the worst to use?
How would you rate each of them?
Grid, Margin, Flex, Float
On these, overflow:hidden
is removed
and replaced with:
.wrapd.inactive .nav {
display: none;
}
Instead of:
.wrapd.inactive a {
display: none;
}
Another View:
https://jsfiddle.net/theq2pxL/12/
On those you can see that there is no overflow,
and that the height on all of them are 174px
.
Using the same method:
.wrapd.inactive .nav {
display: none;
}
Can someone comment on this?
On the removal of overflow:hidden;
What are your thoughts on that?
Grid:
https://jsfiddle.net/g8rpf5rz/4/
.wrapa .nav {
display: grid;
width: 266px;
height: 174px;
grid-gap: 12px 4px;
grid-template-rows: repeat(3, 1fr);
grid-template-columns: repeat(5, 1fr);
Margin:
https://jsfiddle.net/m9wexxny/14/
.wrapb .nav div {
margin: 0 0 12px 0;
}
.wrapb .nav a {
display: block;
width: 50px;
height: 50px;
margin: -50px 0 0;
background: rgba(0, 0, 0, 0.2);
border: 3px solid #0059dd;
box-sizing: border-box;
}
.wrapb .nav a:hover {
border: 3px solid red;
}
.wrapb .nav a.x1 {
margin: 0;
}
.wrapb .nav a.x2 {
margin-left: 54px;
}
.wrapb .nav a.x3 {
margin-left: 108px;
}
.wrapb .nav a.x4 {
margin-left: 162px;
}
.wrapb .nav a.x5 {
margin-left: 216px;
}
Flex:
https://jsfiddle.net/m9wexxny/10/
.wrapc .nav div {
margin: 0 0 12px 0;
display: flex;
}
.wrapc .nav a {
display: block;
width: 50px;
height: 50px;
background: rgba(0, 0, 0, .2);
border: 3px solid #0059dd;
box-sizing: border-box;
}
.wrapc a.x2,
.wrapc a.x4 {
margin: 0 4px;
}
Float:
https://jsfiddle.net/nodzr9gt/
.wrapd .nav a {
float: left;
width: 50px;
height: 50px;
margin: 0 4px 12px 0;
color: transparent;
background: rgba(0, 0, 0, .2);
border: 3px solid #0059dd;
box-sizing: border-box;
}