Bootstrap spacing to center 4 boxes -


i have design want site , involves 4 boxes have in row.

i want these 4 boxes centred have space left , right of page.

so thought clever , use 6 columns leaving far left , right empty.

this looks great on full browsers on mobile looks terrible has spaces not required. can offer , advice on way fix this?

http://legaleye.16mb.com/members/index.php

it's still work in progress link shows mean if open in mobile vs desktop browse.

thanks guys

apologises i'm not near desktop otherwise i'd mock out thought i'd @ least point in right direction.

i'd create 2 css classes, 1 left column padding-left , right 1 padding-right , i'd put inside @media query set padding 0 classes on mobile (min 480px) assume want columns vertical on mobile (like standard bootstrap)? think simplest solution , yea takes away complexity of managing 6 columns.

edit: css should need:

.left{   margin-left:2%; }  .right{   margin-left:2%; }  @media screen , (min-width: 480px) {     .left{         margin:0;     }     .right{         margin:0;     } } 

then add classes columns class="left".


Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -