Can't create columns with Twitter Bootstrap -
i want learn bootstrap. have problem grid-system. can't create columns in rows.
this sample code should work didn't work:
<!doctype html> <html> <head> <link href="css/bootstrap.css" rel="stylesheet"> </head> <body> <div class="container"> <ul class="nav nav-pills"> <li class="active"> <a href="#">home</a> </li> </ul> <div class="row"> <div class="span2"> id </div> <div class="span2"> name </div> <div class="span8"> e-mail </div> </div> <div class="row"> <div class="span2"> 100001 </div> <div class="span2"> joe </div> <div class="span8"> <replacedemail@nowhere.com> </div> </div> <div class="row"> <div class="span2"> 100 </div> <div class="span2"> christine </div> <div class="span8"> <replacedemail@nowhere.com> </div> </div> </div> </body> </html>
below displayed result on browser:
![an image should here, contains personal e-mail addresses][1]
the result should table.
whats wrong code? thank you!
this happening because you're using 2.x css class names (ie; span*
) bootstrap 3. check out list of changes 2.x 3: http://bootply.com/migrate-to-bootstrap-3
using upgrade tool at: http://upgrade-bootstrap.bootply.com/, changed markup to...
<div class="container"> <ul class="nav nav-pills"> <li class="active"> <a href="#">home</a> </li> </ul> <div class="row"> <div class="col-lg-2"> id </div> <div class="col-lg-2"> name </div> <div class="col-lg-8"> e-mail </div> </div> <div class="row"> <div class="col-lg-2"> 100001 </div> <div class="col-lg-2"> joe </div> <div class="col-lg-8"> mamiepvillalobos@teleworm.us </div> </div> <div class="row"> <div class="col-lg-2"> 100 </div> <div class="col-lg-2"> christine </div> <div class="col-lg-8"> christinejwilliams@dayrep.com </div> </div> </div>
demo on bootply: http://bootply.com/73851
Comments
Post a Comment