0

Im making a side navigation in container. I want to make that navigation with fixed position and 100% of side div width. I'm making site with Bootstrap, and I can't find solution for that. There in JSFiddle have a example of that.

There's CSS of menu

.menu{
  position:fixed;
  width:100%;
  background:red;
}
eatmailyo
  • 670
  • 1
  • 12
  • 33

1 Answers1

0

The main issue (or quality, it depends) with position fixed is that moves the element out of the structure. So you can't put it under a parent container (as you tried to do) because there is no parent container.

For more infos see this question where you can find some workarounds to solve your problem.

Community
  • 1
  • 1
Matteo
  • 158
  • 6