css set margin based on screen size bootstrap code example Example: bootstrap, apply margin only on small screen <div class="mobile-margin visible-xs"></div>