Gradient for borders?

24 views
Skip to first unread message

Willem-Siebe Spoelstra

unread,
Sep 28, 2013, 3:06:09 PM9/28/13
to bootstr...@googlegroups.com
Hi, I would like to use this:

#gradient > .horizontal-three-colors(@white, #7a43b6, 50%, @white);

on a border, is that possible?

LightDot

unread,
Sep 30, 2013, 7:38:19 AM9/30/13
to bootstr...@googlegroups.com
Last time I checked browser compatibility, etc. I decided to do a padding trick. So, two divs, one smaller in front and a gradient in the bigger one.

Situation might have changed in the mean time, I suggest checking the compatibility again.

Regards

Willem-Siebe Spoelstra

unread,
Oct 1, 2013, 2:54:54 PM10/1/13
to bootstr...@googlegroups.com
Hi, thanks for your answer. I would like to check compatibility, but I don't know how I can put a gradient on a border. Can you explain me that?


2013/9/30 LightDot <ligh...@gmail.com>

--
You received this message because you are subscribed to a topic in the Google Groups "bootstrap-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/bootstrap-users/hlVGce06fxY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to bootstrap-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bootstrap-users/6553ec27-af62-4814-80a0-2326b5dc4e10%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

knobo

unread,
Oct 1, 2013, 3:40:16 PM10/1/13
to bootstr...@googlegroups.com

I think what he means is something like this:


Best regards
Knut Olav Bøhmer

knobo

unread,
Oct 1, 2013, 4:39:15 PM10/1/13
to bootstr...@googlegroups.com
Hi,

Sorry about previous post.

This is more the answer you where looking for:
Example: 

-webkit-border-image: -webkit-gradient(linear, left top, left bottom, from(#00abeb), to(#fff), color-stop(0.5, #fff), color-stop(0.5, #66cc00)) 21 30 30 21 repeat repeat;

You can also look at  http://caniuse.com/border-image for browser support.


Best regards
Knut Olav Bøhmer

Willem-Siebe Spoelstra

unread,
Nov 10, 2013, 11:00:39 AM11/10/13
to bootstr...@googlegroups.com
Thanks Knut!

Op dinsdag 1 oktober 2013 22:39:15 UTC+2 schreef knobo:
Reply all
Reply to author
Forward
0 new messages