Currently learning html/css and facing an issue with adding a border-bottom to my .menu ul li ul li
element.
.menu ul li ul li{
padding:0;
float:none;
margin:0 0 0 0px;
width:100%;
border-bottom: 1px solid #911;
}
The border is being cut off on the right side due to the right padding set in this style:
.menu ul li ul{
position:absolute;
right: 0px;
border:1px solid #911;
/*box-shadow*/
-webkit-box-shadow:0 1px 5px #CCCCCC;
-moz-box-shadow:0 1px 5px #CCCCCC;
box-shadow:0 1px 5px #CCCCCC;
margin-top:0px;
display:none;
padding:0px 16px 0px 0px;
}
I am puzzled as to why the 16px right padding is necessary. Removing it causes issues with the drop-down menu display (border misalignment, expansion to the right, and a scroll bar appearing).
Additionally, there seems to be missing space on the border in the bottom left corner of the drop-down menu. Any thoughts on why this is happening?
Thank you in advance for any helpful insights!