Jump to content

caja con 3 columnas


Recommended Posts

lo más simple...

<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">

<div class="row">
  <div class="col-xs-4">
    col 1
  </div>
  <div class="col-xs-4">
    col 2
  </div>
  <div class="col-xs-4">
    col 3
  </div>
</div>
Link to comment
Share on other sites

en ese caso basta con ver el código fuente...

<style>
  .col{
    float: left;
    width: 33.33333333%;
  }
  .row:before,.row:after{
    display: table;
    content: " ";
  }
  .row:after {
    clear: both;
  }
</style>

<div class="row">
  <div class="col">
    col 1
  </div>
  <div class="col">
    col 2
  </div>
  <div class="col">
    col 3
  </div>
</div>
Link to comment
Share on other sites

para cambiar la anchura de c/col tendria que hacer algo asi?

<style>
.col1{
float: left;
width: 33.33333333%; <!-- mi ancho -->
}

.col2{
float: left;
width: 33.33333333%; <!-- mi ancho -->
}

.col3{
float: left;
width: 33.33333333%; <!-- mi ancho -->
}

.row:before,.row:after{
display: table;
content: " ";
}
.row:after {
clear: both;
}
</style>

<div class="row">
<div class="col1">
col 1
</div>
<div class="col2">
col 2
</div>
<div class="col3">
col 3
</div>
</div>

sierto?

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...