Spacing with bootstrap columns

2

By studying the official website, I saw that cool-xs-offset was only implemented from the 3.0.1 version, so it includes version 3.0 .3 on my site.

Problem

What happens is that when I apply xs-offset (according to the example below), it also applies this offset to the other devices. Could not apply to XS only?

<div class="col-xs-offset-2 col-xs-8 col-sm-4">
    
asked by anonymous 24.01.2014 / 18:29

2 answers

1

'Solution'

I was able to solve the problem only by applying the other offset, is that correct?

<div class="col-xs-offset-2 col-sm-offset-0 col-md-offset-0 col-lg-offset-0 col-xs-8 col-sm-4">
    
24.01.2014 / 18:37
2

You do not need to put:

<div class="col-xs-offset-2 col-sm-offset-0 col-md-offset-0 col-lg-
offset-0 col-xs-8 col-sm-4">

Just put the offset-0 that goes by inheritance until the end. It would look like this:

<div class="col-xs-offset-2 col-sm-offset-0 (a partir daqui o "0" fica igual para md e lg) 
col-xs-8 col-sm-4">
    
08.08.2016 / 21:56