html - Bootstrap on Chrome Not working -
<!doctype html> <html lang="en"> <head> <title>bootstrap example</title> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet"href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css"> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> <script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js"></script> </head> <body> <div class="container-fluid"> <div class="row"> <div class="col-12 col-sm-2 col-lg-4 col-sm-push-4" style="background-color: blue"> content c </div> <div class="col-12 col-sm-2 col-lg-4 col-sm-push-4" style="background-color: pink"> content d </div> <div class="col-12 col-sm-2 col-lg-2 col-sm-pull-8" style="background-color: purple" > content </div> <div class="col-12 col-sm-2 col-lg-2 col-sm-pull-8" style="background-color: purple"> content b </div> </div> </div> </body>
so trying achieve following display on chrome. works on safari.
desktop: [ 1st col ][ 2nd col ][ 3rd col ][ 4th col ] mobile: [ 3rd col ] [ 4th col ] [ 1st col ] [ 2nd col ]
is syntax wrong or supposed include steps. have tried adding col-xs-4 col-sm-4 col-md-4 every line didn't seem or hurt.
so think real question bootstrap not rendering me on chrome. on safari shows link. on chrome shows link. help!
yeah because not adding columns 12
if wanted diagram can put class
<div class="col col-lg-3 col-sm-12"></div>
will looking might not need col-sm-12 bootstrap tends automarically make each column full width if not specified smaller screen widths
link jsfiddle example http://jsfiddle.net/tw1gqocq/1/
update :::: correct ordering. , bootstrap cdn should start https://
<div class="container-fluid"> <div class="row"> <div class="col col-lg-3 col-sm-12 col-lg-push-6" style="background-color: purple" > content 3rd </div> <div class="col col-lg-3 col-sm-12 col-lg-push-6" style="background-color: green"> content 4th </div> <div class="col col-lg-3 col-sm-12 col-lg-pull-6" style="background-color: blue"> content 1st </div> <div class="col col-lg-3 col-sm-12 col-lg-pull-6" style="background-color: pink"> content 2nd </div> </div> </div>
Comments
Post a Comment