Is there a way to add the class p-5
only for mobile devices?
For desktop computers:
<nav class="navbar navbar-expand-lg navbar-light bg-light" style="padding:0px 10px 0px 10px;">
For mobile devices:
<nav class="navbar navbar-expand-lg navbar-light bg-light p-5" style="padding:0px 10px 0px 10px;">
I know about using media queries in CSS, like this:
@media screen and (min-width: 768px) {
However, I'm unsure how to work with the p-5
class because it's a default Bootstrap class. Any suggestions on how to implement this?