Because the item is absolutely positioned, it's outside of the regular DOM flow. (Not trying to be condescending.) To "keep it" within the container, I would manually move the element over x amount, for example:
@media screen and (min-width: 1024px) {
.navbar-end .navbar-dropdown:last-child {
left: -35px;
}
}
Another option, which I know goes against your question, is to position the .navbar-end
dropdown menus with right: 0;
instead of left
. This will keep the right-side items away from that side though.
@media screen and (min-width: 1024px) {
.navbar-end .navbar-dropdown {
left: unset;
right: 0;
}
}
I hope this helps! (Even a tad ??)
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…