Search
 
SCRIPT & CODE EXAMPLE
 

CSS

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

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

css border top linear gradient

.bordertest {
    height:300px;
    width:300px;
    border-top:30px solid #c4268c;
    background:#000;
    position:relative;
    margin:1em;
}
.bordertest:first-child:before {
    content:'';
    position:absolute;
    width:100%;
    height:30px;
    background:linear-gradient(to left, #c4268c, #9a0b72);
    top:-30px;
    left:0;
}
Comment

PREVIOUS NEXT
Code Example
Css :: fixed image position while scrolling 
Css :: transition css react 
Css :: css grid example 
Css :: css display offscreen 
Css :: modern css fonts 
Css :: flex box css 
Css :: filter array by keyword 
Css :: control one swiper with other 
Css :: how to change paragraph text color to Red css 
Css :: ordered list indent 
Css :: css button 
Css :: webkit appreance none select 
Css :: NeuMorphisme button code 
Css :: javascript index value 
Css :: how to set initial state after first time in formik 
Css :: css good line height 
Css :: How to make a pixel in css 
Css :: see css from site 
Css :: add color to border css 
Css :: position absolute above everything 
Css :: css absolute in absolute 
Css :: datepicker disable future date odoo 
Css :: css cursor 
Css :: css animation not working 
Css :: text align in materialize css 
Css :: neumorphism css generator 
Css :: css after before 
Css :: react use global css classes 
Css :: css position 
Css :: freecodecamp hide content using css 
ADD CONTENT
Topic
Content
Source link
Name
8+7 =