본문 바로가기

IT/Develop

background-clip

<div>
  <h1>This is a Heading</h1>
  <p>This is a paragraph.</p>
  <p>This is another paragraph.</p>
</div>
div { 
    border: 10px dotted black;
    padding: 35px;
    background: #5558da;
    background-clip: padding-box;
}

 

 

 

background-clip

.left{ 
  background-clip: border-box;
  background-size: 50%;
  background-color: #ffdb3a; 
  background-repeat: no-repeat;
  background-position: top left; 
  border: 10px dotted black; 
  padding: 20px;
}
.middle { background-clip: padding-box;  /* Other styles same as .left*/ }
.right { background-clip: content-box;  /* Other styles same as .left*/ }

 

'IT > Develop' 카테고리의 다른 글

Bootstrap 4 Popover  (0) 2019.10.22
CSS Gradient Text  (0) 2019.10.22
Wicked CSS animations  (0) 2019.10.11