User:HINK/common.css: Difference between revisions

From bg3.wiki
Jump to navigation Jump to search
No edit summary
(Blanked the page)
Tag: Blanking
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
.diamond-image-wrapper {
    position: relative;
    width: 150px; /* Adjust the width as needed */
    height: 150px; /* Adjust the height as needed */
    margin: 20px; /* Adjust the margin as needed */
}


.diamond-image {
    width: 100%;
    height: 100%;
    overflow: hidden;
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    border: 2px solid black; /* Border width and color */
    box-sizing: border-box;
}
.diamond-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the image covers the container */
}

Latest revision as of 21:06, 21 June 2024