Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can I use the sidebar in a webpage that doesn't fill the whole screen? #14

Open
martinvol opened this issue Jun 2, 2017 · 3 comments

Comments

@martinvol
Copy link

martinvol commented Jun 2, 2017

If i take the demo and I try to apply a width to .container-fluid so it doesn't use the whole screen, the sidebar and the main content overlap.

How can I prevent this?
See a screenshot: http://i.imgur.com/JGYRfPR.png

@Zhythero
Copy link

Zhythero commented Jun 2, 2017

Use an inline styling to the col-* container of the navbar with z-index

Example (on my case):

 <div class="col-sm-3 col-lg-2" style="z-index: 2">
   <!-- navbar here -->
 </div>
 <div class="col-sm-9 col-lg-10">
   <!-- content here -->
 </div>

@martinvol
Copy link
Author

@Zhastreaus But I think that doesn't solve the overlapping, it just states what div should be on top of what, right?

@Zhythero
Copy link

Zhythero commented Jun 3, 2017

@martinvol Oh, so you want to shrink both elements instead of them being overlapped. Hmm, I currently don't know how to solve this because I was contented with z-index.

let's just wait for another one to have a solution for this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants