-
Notifications
You must be signed in to change notification settings - Fork 24
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
pro and cons of backgroud image vs border image #3
Comments
Were you able to make it work as a border image? I tried copying the output and setting it as a border image but it didn't work. Actually for my case I just want a border on one side of a div but I'm not sure how to make that work. |
No I've never used it but I believe it is a native alternative to background image, albeit the generative GUI of this library is still useful. I suppose the border image is a bit more performant and would also allow the simultaneous use of a background image for styling differently the interior of the element, but I'm not sure.
Oh that has nothing to do with this library but if that's what you need you can simply use .box {
border-left: 1px solid red;
} and padding |
Well to be clear, I actually want a dashed border and control over the spaces between the dashes with my border-left. So I'm not sure how to do that. |
I don't think there is a css property for that but you can either handcraft it in SVG or use this library, the online demo expose the Dash Array to do something like that |
what is all this scam going on ^ here? and tagging me |
https://developer.mozilla.org/fr/docs/Web/CSS/border-image
would the latter be more optimised by the browser ? Less pixel artifact ?
The text was updated successfully, but these errors were encountered: