Topic: dropdown-item on hover adds margin-left: 1rem;
Matias Miranda Noriega
pro
asked 6 years ago
I've noticed that putting a button inside a table division will add margin left: 1rem; to all anchor tags. The hover effect then gains a margin left on hover.
<div class="dropdown">
<button class="btn btn-primary dropdown-toggle" type="button" id="dropdownMenu2" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
Dropdown
</button>
<div class="dropdown-menu dropdown-menu-right" aria-labelledby="dropdownMenu2">
<a class="dropdown-item" href="#">Action</a>
<a class="dropdown-item" href="#">Another action</a>
<a class="dropdown-item" href="#">Something else here</a>
</div>
</div>
.table a {
/* margin-left: 1rem; */
}

Add comment
Bartłomiej Malanowski
staff
answered 6 years ago
Thanks for letting us know! We'll fix it with incoming release
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Status
Specification of the issue
- User: Pro
- Premium support: No
- Technology: General Bootstrap questions
- MDB Version: -
- Device: -
- Browser: -
- OS: -
- Provided sample code: No
- Provided link: No
Tags