CSS-Tricks is brought to you in part by Media Temple, the web hosting that we both use and recommend.
Hey sorry in advance i’m an ametuer at this, but here goes.
I need a border that has a sketched look so instead of having pretty meeting corners, the lines need to go past so it looks like its just been sketched up.
is this possible using css?
thanks for your time
Do you have an image of what you are trying to achieve?
The ‘going past’ is, I suspect going to be the real issue. All normal CSS borders meet at 45 degrees and don’t cross.
There is an option which might serve but it involves an image and is not supported by IE called `border-image`.
Its not hard (but not easy either) and, as I said, you would have to have an image of the whole border.
This reply has been reported for inappropriate content.
The going past part is doable, made this a while ago: http://codepen.io/CrocoDillon/pen/vhykC
The sketched effect, not so sure. I guess you can make the extensions uneven length to make it look more sketched.
Yes, u can also us absolute positioning to achieve it.
Made this today for a client using both the before and after pseudo class, and adding a small rotation on both. Forked your pen, CrocoDillon.
More of a comic book cell sketchy border, but I think it’s what you’re looking for.
This one uses Sass and Bourbon, but the css is viewable easily by clicking the css header.
100% Code, no images required. Hope it helps!
You must be logged in to reply to this topic.
Search for Stuff
Browse the Archives
Get the Newsletter
... or get the RSS feed