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 to position content below fixed top elements? #295

Open
matochondrion opened this issue Dec 23, 2017 · 0 comments
Open

how to position content below fixed top elements? #295

matochondrion opened this issue Dec 23, 2017 · 0 comments

Comments

@matochondrion
Copy link

Hi,

I have a fixed header and would like the slidebar to appear from the top direction, but position below the header.

If I don't include some sort of spacing mechanism (div with a set height, padding-top, etc), the page content is positioned at the top of the page with the header layered overed it.

When I add a spacer to move the page content down, and open the slidebar, there is empty space between the slidebar and the page content.

I'm wondering if there's a cleaner way to do this so the page content top, is flush with the bottom of the slidebar?

Page content hidden without a spacer

screenshot 2017-12-23 11 34 42

Page content visible with a spacer

screenshot 2017-12-23 11 35 33

empty spacer area visible when slidebar expands

screenshot 2017-12-23 11 35 42

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

1 participant