How to set fix width in percentages for container Bootstrap?

I have a root container as: .container-fluid, inside this I want create block with 80% width of display. How to do that?

1 answer

  • answered 2019-02-10 12:49 MrOrhan

    You can use something like this:

    <div class="container-fluid w-75">...</div>
    

    "w-75"-class is defined by Bootstrap and u can put it after container-fluid.

    If you want exactly 80 percent you have to write extra CSS-Class like

    .costum-w-80 {
     width: 80%;
    }
    

    Then you can put it after container-fluid