I’m wondering how I can make a background only show up in the corner (and the other 3 corners around the content) like shown in the picture below… namely:
Any and all help would be appreciated!
Try next for one corner:
div.image {
background-color: #fff; /* Set default background color, same that background's base color */
background-image: url("corner.png"); /* Set transparent image for corner */
background-position: right top; /* Set positioning */
background-repeat: no-repeat; /* Disable multiple background images showing */
}
Or this for multiple backgrounds:
div.image {
background-color: #fff;
background-image:
url("corner1.png"),
url("corner2.png"),
url("corner3.png"),
url("corner4.png");
background-position:
right top, /* Set positioning for corner 1 */
right bottom, /* Set positioning for corner 2 */
left bottom, /* Set positioning for corner 3 */
left top; /* Set positioning for corner 4 */
background-repeat:
no-repeat,
no-repeat,
no-repeat,
no-repeat;
More informathion you can find here: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_backgrounds_and_borders/Using_multiple_backgrounds
Also you can draw same shape by using SVG: https://developer.mozilla.org/en-US/docs/Web/SVG/Tutorial