custom css breaks with bootstrap grids -
My custom vertical-side navigation bar works fine myself Here's a plnkr:
However, when presented within a bootstrap grid, the same navbar is broken. Here Plnkr:
& lt; Div class = "container" & gt; & Lt; Div class = "row" & gt; & Lt; Div class = "col-lg-1 col-md-1" & gt; & Lt; Ng- included src = "'nav.html" "& gt; & Lt; / Ng-include & gt; & Lt; / Div & gt; & Lt; Div class = "col-lg-11 col-md-11" & gt; This content section is & lt; / Div & gt; & Lt; / Div & gt; I can decide on using some things like adding a minimum-height property to a class
. Current-side-bar
However, I do not believe that this is the right way to do it. I have some concept here
Does anyone please tell what is wrong?
Plunk that you have not called the nav.css file.
& lt; Link rel = "stylesheet" href = "nav.css" />
Now all that is missing is the background color and so it should not be difficult to add it back. Your layout is working basically, however It needs to fill the width of the container instead of the fixed width (I said in my strength).
But keep in mind that you can not get a fixed width, in Columns Bootstrap 3 you are expecting. A column will always be 1/12 of the width of the screen. Also, you should start with the set column for the Xs and then specify the SM, MD, or LG if they should be different. For example, you may need a 3 x column to fit your content (col-xs -3), but only 1 (col-lg-1) in a large device
Comments
Post a Comment