L
L
Legioner9112015-01-14 19:17:26
css
Legioner911, 2015-01-14 19:17:26

Why is img ignoring padding in bootstrap?

6efce6f8c68244278257856e79ebd3b5.png

<body>
    <div class="container-fluid">
      <div class="container cont-top">
        <div class="row">
          <div class="col-xs-1">
            <img src="images/logo.png" alt="logotype">
          </div>
          <div class="col-xs-1 col-sm-offset-10">
            <img src="images/logo.png" alt="logotype">
          </div>
        </div>
      </div>
    </div>
  </body>

Answer the question

In order to leave comments, you need to log in

3 answer(s)
D
Dmitry Kamyannoy, 2015-01-14
@redfieldone

Because padding is written in it
a) in div.col *
b) in row
Remove the indent in the above blocks.

H
Hazrat Hajikerimov, 2015-01-14
@hazratgs

Could it be box-sizing: border-box?

T
tennalian, 2015-01-14
@tennalian

max-width?
without code, you can't tell for sure)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question