.form-group and .col-offset-* not working for Bootstrap 3
Hello,
I've been playing a bit with Bootstrap 3 for forms and spotted an issue.
I thought my structure was wrong, but I can't get both .col-offset-* and .form-group working properly...
Here is a live example (in HAML, please excuse my laziness) http://cssdeck.com/labs/dzks2zzo
Basically, you can't apply a .col-offset-* because the .form-group margin overrides it (1st example).
If you nest the .form-group into the .col-offset-*, the margin still shifts (2nd example).
Translated to HTML, with latest CSS (180034a4b450fb4a6567d6dbaaeb680905d798c4): http://jsfiddle.net/GkJJL/4/
Thank you :)
Same issue here!
i'm having the same problem :( any fixes ?
I am also having this issue, offset does not work as if it is not included in the css file.
There actually is no col-lg-offset-* it's just col-offset-*
Just discovered this looking into the CSS file and doing a find all.
Changing it fixes this issue.
Doable: http://jsfiddle.net/qv9TG/3/
The issue remains for me, I don't know what I'm doing wrong:
With the actual Bootstrap 3 CSS that is available for download: http://jsfiddle.net/fguillen/KjJrs/
With the Bootstrap 3 CSS that is available through the CDN: http://jsfiddle.net/fguillen/NNgKw/
(You must make the "Result" frame bigger to see the effect)
The issue can be seen even in the Bootstrap documentation example of "Horizontal Form": http://getbootstrap.com/css/#forms-horizontal
The short explanation is that it's fixed in git HEAD, and all 3 of those are outdated relative to it. Note the commit SHA in my fiddle.
Thanks Jordan4jc, Solve it by using .col-offset-* instead .col-lg-offset-*
The .col-offset-* instead of .col-lg-offset-* fix is okay temporarily, but the documentation indicates that it should be .col-(size)-offset-* and with .col-(size)-* being used you need some way to adapt the column offsets to various screen-sizes.
Not sure if this needs to be re-opened, it doesn't seem to be in 3.2?
I've pasted 3.2 in here and the offsets are not applied http://jsfiddle.net/qv9TG/8/
There are no col-offset-# styles. When using col-md-offset-1 I can see the style is being overridden by form-group clearly, my current workaround is to add !important to all those offset styles
All of those refer to blank 'for' attributes, I just quickly updated the fiddle in the thread above, so happily ignoring the snazzy auto comments
@adam-marshall Looks the same to me on Mac Chrome. Be sure that your viewport is wide enough.
Hi, yes I think that was my bad, thanks.