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

Top/bottom inset borders #27

Open
mhulse opened this issue Mar 9, 2016 · 1 comment
Open

Top/bottom inset borders #27

mhulse opened this issue Mar 9, 2016 · 1 comment

Comments

@mhulse
Copy link
Owner

mhulse commented Mar 9, 2016

nav[role="navigation"] .container {
    box-shadow: 0 -3px 0 red inset, /* Top */
                0 3px 0 red inset;  /* Bottom */
}

Useful if you need child elements to overlap borders.

@mhulse
Copy link
Owner Author

mhulse commented Mar 15, 2016

From @patflannery:

.top-box
{
    box-shadow: inset 0 7px 9px -7px rgba(0,0,0,0.4);
}
.left-box
{
    box-shadow: inset 7px 0 9px -7px rgba(0,0,0,0.4);
}
.right-box
{
    box-shadow: inset -7px 0 9px -7px rgba(0,0,0,0.4);
}
.bottom-box
{
    box-shadow: inset 0 -7px 9px -7px rgba(0,0,0,0.4);
}

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

No branches or pull requests

1 participant