Start Coding
All
Accordion
Buttons
Cards
Carousel
Css Animation
Hexagons
Hover
Layout
Loaders
Menu
Navigation
Slider
Tables
Wave
Layout
header
sidebar
Content-1
Content-2
Content-3
.container { display: grid; width: 750px; height: 600px; grid-template-columns: 200px 1fr 1fr; grid-template-rows: 80px 1fr 1fr 100px; grid-gap: 1rem; grid-template-areas: "header header header" "sidebar content-1 content-1" "sidebar content-2 content-3" "footer footer footer"; } .header { grid-area: header; } .sidebar { grid-area: sidebar; } .content-1 { grid-area: content-1; } .content-2 { grid-area: content-2; } .content-3 { grid-area: content-3; } .footer { grid-area: footer; grid-row: 4 / 5; grid-column: 1 / 4; } /* OTHER STYLES */ body { background-color: #3b404e; display: flex; justify-content: center; padding: 20px; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; } .item { background-color: #1EAAFC; background-image: linear-gradient(130deg, #6C52D9 0%, #1EAAFC 85%, #3EDFD7 100%); box-shadow: 0 10px 20px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23); color: #ffffff; border-radius: 4px; border: 6px solid #171717; display: flex; justify-content: center; align-items: center; font-size: 18px; font-weight: bold; } .header { background-color: #1EAAFC; background-image: linear-gradient(160deg, #6C52D9 0%, #9B8AE6 127%); } .sidebar { background-image: linear-gradient(203deg, #3EDFD7 0%, #29A49D 90%) } .content-1, .content-2, .content-3 { background-image: linear-gradient(130deg, #6C52D9 0%, #1EAAFC 85%, #3EDFD7 100%); } .footer { background-color: #6C52D9; background-image: linear-gradient(160deg, #6C52D9 0%, #9B8AE6 127%); }
3
CSS Grid Layout – with color
By:
rald_dev
header
nav
section
/* Note: This example only works with Windows Insider Preview Builds 16237+ or the Fall Creators Update. */ body { font-family: segoe-ui_normal,Segoe UI,Segoe,Segoe WP,Helvetica Neue,Helvetica,sans-serif; display: grid; grid-template-areas: "header header header" "nav section aside" "footer footer footer"; grid-template-rows: 80px 1fr 50px; grid-template-columns: 15% 1fr 18%; grid-gap: 5px; height: 100vh; margin: 10px; } header { background: #707070; grid-area: header; } nav { background: #C9BFBF; grid-area: nav; } section { background: #ABABAB; grid-area: section; } aside { background: #C9C9C9; grid-area: aside; } footer { background: #707070; grid-area: footer; } header, nav, section, aside, footer { padding: 5px; }
2
CSS Grid Layout
By:
rald_dev
Happy birthday
Wilbertgwapo
.body{ display: flex; justify-content: center; height: 100vh; background: #240229; } .loader{ margin-top:8%; position: relative; width: 70%; height: 70%; border-radius: 5% ; background: linear-gradient(#14ffe9,#ffeb3b,#ff00e0); animation: animate 0.5s linear infinite; } .loader span{ position: absolute; width: 100%; height: 100%; border-radius: 5% ; background: linear-gradient(#14ffe9,#ffeb3b,#ff00e0); animation: animate 0.5s linear infinite; } .loader span:nth-child(1){ filter: blur(5px); } .loader span:nth-child(2){ filter: blur(10px); } .loader span:nth-child(3){ filter: blur(25px); } .loader span:nth-child(4){ filter: blur(50px); } .loader:after{ content: ''; position: absolute; top: 10px; left: 10px; right: 10px; bottom: 10px; background: #240229; border-radius: 5%; } h1{ position: absolute; margin: 0%; padding: 0%; margin-top: 12%; letter-spacing: 5px; color: rgb(196, 146, 230); font-family: "Comic Sans MS", cursive, sans-serif; } q{ position: absolute; margin: 0%; padding: 0%; margin-top: 20%; color: rgb(196, 146, 230); font-family: "Comic Sans MS", cursive, sans-serif; } .glow { -webkit-animation-duration: 1s; -webkit-animation-name: glow; -webkit-animation-direction: alternate; -webkit-animation-iteration-count: infinite; animation-duration: 1s; animation-name: glow; animation-direction: alternate; animation-iteration-count: infinite; } @-webkit-keyframes glow { from { text-shadow: 0 0 0px rgb(196, 146, 230); } to { text-shadow: 0 0 20px rgb(196, 146, 230); } }
1
Happy birthday banner
By:
rald_dev