css - How can I debug twitter bootstrap v4-alpha grid? col-sm-offset-* not working -
i've changed something, somewhere , col-sm-offset-*
s aren't working @ all. example, if wanted split screen in half, , display content on right hand side, use:
<div class="container"> <div class="row"> <div class="col-sm-6 col-sm-offset-6"> content isn't on right hand side, it's on left if col-sm-offset-6 isn't there. </div> </div> </div>
how can check what's wrong?
i'm using npm , laravel elixir (gulp) minify (make production ready) files , short of me copying entire css file here, don't know else do. there obvious? has come across before?
update
<div class="container"> <div class="row"> <div class="col-sm-6 col-sm-offset-6"> <div class="row"> <form role="form" method="post" action="/register"> <input type="hidden" name="_token" value="abcdefghij"> <div class="col-xs-12"> <fieldset class="form-group"> <label for="username" class="form-control-label">username</label> <input name="username" type="text" class="form-control " id="username" placeholder="enter username" value="j"> </fieldset> </div> <div class="col-sm-6"> <fieldset class="form-group"> <label for="first_name" class="form-control-label">first name</label> <input name="first_name" type="text" class="form-control " id="first_name" placeholder="enter first name" value="john"> </fieldset> </div> <div class="col-sm-6"> <fieldset class="form-group"> <label for="last_name" class="form-control-label">last name</label> <input name="last_name" type="text" class="form-control " id="last_name" placeholder="enter last name" value="appleseed"> </fieldset> </div> <div class="col-sm-6"> <fieldset class="form-group"> <label for="email" class="form-control-label">email address</label> <input name="email" type="email" class="form-control " id="email" placeholder="enter email address" value="j@a.com"> </fieldset> </div> <div class="col-sm-6"> <fieldset class="form-group"> <label for="password" class="form-control-label">password</label> <input name="password" type="password" class="form-control " id="password" placeholder="enter password" value="password"> </fieldset> </div> <div class="col-sm-6"> <fieldset class="form-group"> <label for="password_confirmation" class="form-control-label">confirm password</label> <input name="password_confirmation" type="password" class="form-control " id="password_confirmation" placeholder="please confirm password" value="password"> </fieldset> </div> <div class="col-sm-6"> <div class="form-group"> <button type="submit" class="btn btn-primary pull-right">register</button> </div> </div> </form> </div> </div> </div> </div>
web inspector
css computed properties
update 2
i've submitted issue on github may have been intentional.
the current correct offset class bootstrap v4 alpha:
class="col-md-6 offset-md-3"
Comments
Post a Comment