css - Bootstrap 4 accepting offset-md-*, instead col-offset-md-* Naming Convention Bug -


i'm beginner in bootstrap 4.

i started learning , sadly, have been encountering problems already. modified code bootstrap 4 manual itself. however, fails miserably, offset not working properly. code simple , doesn't require lot of code though.

edit: may 25, 2016 [12:35 pm (gmt+8)]:

using boootrap 3.3.6 release, col-md-offset-* working. however, in bootrap 4 has failure.

issue has been posted on https://github.com/twbs/bootstrap/issues/19966!

this code used:

 <!-- contains .red, .blue , .green classes -->  <style> ... </style>   <div class="container">     <div class="row">         <div class="col-md-4 red">          hello world        </div>         <div class="col-md-4 col-offset-md-4 green">          hello world        </div>           <div class="col-md-4 col-offset-md-4 blue">          hello world        </div>      </div> 


so, doubted there in fact class in bootstrap called "col-md-offset-*" fails work. so, in safari, opened develop > show web inspector , took @ bootstrap file linked via cdn. searched class col-md-offset-4, , didn't appear. however, saw md-offset-4 instead. saw instead of class col-md-push-4, found md-push-4 , on , forth. therefore, instead used md-push-4 , worked example in bootstrap.

edit: may 25, 2016 [9:03 pm (gmt+8)]:

this addresses answer user nate conley. way, taken http://v4-alpha.getbootstrap.com/layout/grid/ of time question edited. change of bootstrap team unforeseen or unknown @ time of writing.

documentation code sample

code found in bootsrap 1

code found in bootstrap 2

therefore, modified code , works fine.

<style> ... </style>       <div class="container">     <div class="row">         <div class="col-md-4 red">          hello world        </div>         <div class="col-md-4 offset-md-4 green">          hello world        </div>           <div class="col-md-4 offset-md-4  blue">          hello world        </div>      </div> 

q: problem browser, safari (9.1), or bootstrap version 4, maxcdn, etc.? normal bug in bootstrap 4?

using boootrap 3.3.6 release, col-md-offset-* working. however, in bootrap 4 has failure.

as seen on issue posted, recommend user vp_arth here, in bootstrap 4 development repository in github. bootsrap v4 documentation of grid system, of moment has not yet applied edited 1 github, can accessed through these links:

a) bootstrap layout grid.md file

b) examples of using grid system

simple answer: there nothing wrong safari browser, nor cdn, nor bootsrap v4 itself, in fact outdated docs of time of writing. updated in next alpha. more information can seen in closed issue thread posted in here :)

(9:30 pm gmt+8)


Comments

Popular posts from this blog

scala - 'wrong top statement declaration' when using slick in IntelliJ -

c# - DevExpress.Wpf.Grid.InfiniteGridSizeException was unhandled -

PySide and Qt Properties: Connecting signals from Python to QML -