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 #142

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

Multi-line padded text #142

mhulse opened this issue Mar 31, 2018 · 0 comments

Comments

@mhulse
Copy link
Owner

mhulse commented Mar 31, 2018

Multi-line padded text:

/*
<span><span>Some text</span></span>
*/

span {
    padding: 10px;
    display: inline; /* If not already. */
    background: rgba(255, 255, 255, .9);
    -webkit-box-decoration-break: clone;
    -moz-box-decoration-break: clone;
    -ms-box-decoration-break: clone;
    -o-box-decoration-break: clone;
    box-decoration-break: clone;
}
span > span {
    position: relative; /* Prevents background overlap on wrapped lines. */
}
@mhulse mhulse added README and removed README labels Mar 31, 2018
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