Search
 
SCRIPT & CODE EXAMPLE
 

CSS

css chamfered corner

div {
  background: #c00;
  /* fallback */
  background: -moz-linear-gradient(45deg, transparent 10px, #c00 10px), -moz-linear-gradient(135deg, transparent 10px, #c00 10px), -moz-linear-gradient(225deg, transparent 10px, #c00 10px), -moz-linear-gradient(315deg, transparent 10px, #c00 10px);
  background: -o-linear-gradient(45deg, transparent 10px, #c00 10px), -o-linear-gradient(135deg, transparent 10px, #c00 10px), -o-linear-gradient(225deg, transparent 10px, #c00 10px), -o-linear-gradient(315deg, transparent 10px, #c00 10px);
  background: -webkit-linear-gradient(45deg, transparent 10px, #c00 10px), -webkit-linear-gradient(135deg, transparent 10px, #c00 10px), -webkit-linear-gradient(225deg, transparent 10px, #c00 10px), -webkit-linear-gradient(315deg, transparent 10px, #c00 10px);
}

div {
  background-position: bottom left, bottom right, top right, top left;
  -moz-background-size: 50% 50%;
  -webkit-background-size: 50% 50%;
  background-size: 50% 50%;
  background-repeat: no-repeat;
}


/* Ignore the CSS from this point, it's just to make the demo more presentable */

div {
  float: left;
  width: 50px;
  margin: 15px auto;
  padding: 15px;
  color: white;
  line-height: 1.5;
}
Comment

PREVIOUS NEXT
Code Example
Css :: increase clickable area css 
Css :: css basic template 
Css :: showing two iframes side by side 
Css :: how to get text to auto break in a grid 
Css :: css color when clicked 
Css :: css img 
Css :: css nesting 
Css :: vertical align h1 inside div 
Css :: color gradient 
Css :: css loader with gradient 
Css :: css buttons 
Css :: css not working 
Css :: vue scoped css child component 
Css :: style input number css 
Css :: css change image height 
Css :: css multiline comment 
Css :: secltor for parent li css 
Css :: how to make the position of a div always stay while scrolling 
Css :: memebuat html dan css login instagram 
Css :: css icons library 
Css :: python css 
Css :: css footer comes under aside 
Css :: profile page html css template 
Css :: css hex to rgb 
Css :: css custom cursor form image 
Css :: css block 
Css :: black background overlay filter | black overlay for image css 
Css :: css make a cell twice as big flexbox 
Css :: linear gradient css 
Css :: css selector id class 
ADD CONTENT
Topic
Content
Source link
Name
4+3 =