Search
 
SCRIPT & CODE EXAMPLE
 

CSS

css gradient border

  box-sizing: content-box;
  border-width: 8px;
  border-style: solid;
  border-image: linear-gradient(to right bottom, #260B3C, #a053df);
  border-image-slice: 1;
Comment

gradient border with border radius

.rounded-corners-gradient-borders {
  width: 300px;
  height: 80px;
  border: double 4px transparent;
  border-radius: 80px;
  background-image: linear-gradient(white, white), radial-gradient(circle at top left, #f00,#3020ff);
  background-origin: border-box;
  background-clip: content-box, border-box;
}
Comment

rounded gradient border css


div{
  width: 300px;
  height: 80px;
  border: double 5px transparent;
  border-radius: 30px;
  background-image: linear-gradient(white, white),         /*here must be*/
                    linear-gradient(to right, green, gold);    /*both gradients*/
  background-origin: border-box;
  background-clip: content-box, border-box;
}
Comment

linear gradient border

div-border-and-content-background {
  border-top: double 5px transparent;
  
  /* first gradient is for card background, second for border background */
  background-image: linear-gradient(white,white), linear-gradient(to right, grey, black);
  background-clip: padding-box, border-box;
  background-origin: border-box;
  }
Comment

gradient border

.btn-gradient-border {
  color: rgb(var(--text-color));
  border: 2px double transparent;
  background-image: linear-gradient(rgb(13, 14, 33), rgb(13, 14, 33)), radial-gradient(circle at left top, rgb(1, 110, 218), rgb(217, 0, 192));
  background-origin: border-box;
  background-clip: padding-box, border-box;
}
Comment

CSS Border Gradient

@import url('//raw.githubusercontent.com/necolas/normalize.css/master/normalize.css');

html {
    /* just for showing that background doesn't need to be solid */
    background: linear-gradient(to right, #DDD 0%, #FFF 50%, #DDD 100%);
    padding: 10px;
}

.grounded-radiants {
    position: relative;
    border: 4px solid transparent;
    border-radius: 16px;
    background: linear-gradient(orange, violet);
    background-clip: padding-box;
    padding: 10px;
    /* just to show box-shadow still works fine */
    box-shadow: 0 3px 9px black, inset 0 0 9px white;
}

.grounded-radiants::after {
    position: absolute;
    top: -4px; bottom: -4px;
    left: -4px; right: -4px;
    background: linear-gradient(red, blue);
    content: '';
    z-index: -1;
    border-radius: 16px;
}
Comment

PREVIOUS NEXT
Code Example
Css :: css blink 
Css :: remove outline of input css 
Css :: how to increase space between lines in css 
Css :: sticky footer bootstrap 3 
Css :: how to scroll fixed position 
Css :: schatten css 
Css :: set rotation of img in css 
Css :: font size css 
Css :: centrer un élément absolute 
Css :: html three dots ellipsis 
Css :: calc(100vh - px) 
Css :: media screen 
Css :: table td remove padding 
Css :: css caret-color property 
Css :: grab cursor css 
Css :: transition shorthand css 
Css :: How to remove the blueish background on a button when clicked 
Css :: move element to the left css 
Css :: how to stop browser from swipe left to right history-navigation javascript 
Css :: mat radio button color 
Css :: truncate in css 
Css :: how to position something on the same line css 
Css :: css distance between text and input box 
Css :: css grid auto resize on mobile 
Css :: html5 video hide progress bar 
Css :: css content from data attribute 
Css :: get second child div css 
Css :: kotlin string to int 
Css :: how to evenly space icons in a div css 
Css :: all.min.css cdn 
ADD CONTENT
Topic
Content
Source link
Name
4+9 =