I am trying to create a popup width expansion using bootstrap as you can see in this figure . Now I have something like this (I removed unnecessary items from the navigation list):
<ul class="nav navbar-nav navbar-right"> <li> <a href="/_work/cz.krupovi/www/o-nas">O nás</a> </li> <li class="dropdown"> <a class="dropdown-toggle" data-toggle="dropdown" href="#">Kalkulačky <span class="caret"></span></a> <ul class="dropdown-menu list-inline" role="menu"> <li><a href="#">RPSN Kalkulačka</a> </li> <li><a href="#">Inflačnà kalkulačka</a> </li> </ul> </li> </ul>
And I need to create a dropdown like this . I haven’t made any changes to the navigation bar and the drop-down menu has fewer files - that’s why I don’t post CSS, it is pure Bootstrap 3.2.0 . I just played with CSS rules in Chrome, disabled them and changed their values ​​(those that have something in common with positioning).
My own rules have been added, but still I can’t figure out how to make it 100% of the width of the viewport. It probably inherits the width from the parent, which, of course, does not have the width of the viewport. This can be a problem.
Also I found this section , but it did not help me. I was on a scene where I had about 800 pixels of width (when I used width: 100% ), but it was aligned to "KalkulaÄŤky", and if I wanted it to start from the left edge of the screen, I had to use left: -100px . Do you have ideas? I am literally lost.
Please be kind - I do not have good CSS knowledge and I just started with Bootstrap.
less twitter-bootstrap
Northys
source share