lundi 20 avril 2015

Why won't Bootstrap columns work in this small HTML/CSS snippet?

I expect to have a left column 2 units wide and a right area 10 units long. However, for some strange reason it is not coming out that way.

Anyone know why not?

#left {
  background-color: green;
}
#right {
  background-color: yellow;
}
<link href="http://ift.tt/1zOhBN9" rel="stylesheet"/>

<div id="main-row" class="row">
  <div id="left" class="col-xs-2">
    <p>Yo</p>
    <button class="btn btn-primary">A Button</button>
  </div>
  <div id="right" class="col-xs-10">
    Ho
  </div>
</div>

Aucun commentaire:

Enregistrer un commentaire