I'm currently working on developing an unordered list for my application.
Here is what I have so far:
HTML
<div id='wrapper' class='container'>
<ul>
<li id='first-btn'></li>
<li id='second-btn'><a href='#'>test</a></li>
<li id='third-btn'><a href='#'>test 3</a></li>
</ul>
</div>
CSS
#wrapper li{
display: inline-block;
width: 50px;
height: 70px;
padding: 0;
}
#first-btn{
background-color: #5A8D17;
}
#second-btn{
background-color: #80CD1D;
}
#third-btn{
background-color: #FFEE00;
}
However, the final output looks strange to me.
- The second and third buttons appear to be shifted downward.
- Additionally, I want the buttons to be placed right next to each other without any gaps between them,
without the 2px margin that's currently visible.
Could someone assist me with this issue? Thank you!