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

Multi-line padded text #166

Open
mhulse opened this issue Mar 31, 2018 · 0 comments
Open

Multi-line padded text #166

mhulse opened this issue Mar 31, 2018 · 0 comments

Comments

@mhulse
Copy link
Owner

mhulse commented Mar 31, 2018

/* <span><span>Some text</span></span> */
.padded {
    color: #000;
    padding: 10px;
    display: inline; /* If not already. */
    background: rgba(255, 255, 255, .9);
    box-decoration-break: clone;
}
.padded > span {
    position: relative; /* Prevents background overlap on wrapped lines. */
}
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