デモ
See the Pen decoration by logsuke (@design-list) on CodePen.
コード
header design
<h1>header design</h1>
h1 {
padding: .5rem 1rem;
border-left: 4px solid rgb(226, 196, 126);
}
header design
<h1>header design</h1>
h1 {
padding: .5rem 1rem;
border-bottom: 4px solid rgb(226, 196, 126);
}
header design
<h1>header design</h1>
h1 {
padding: .5rem 1rem;
border-bottom: 4px dashed rgb(226, 196, 126);
}
header design
<h1>header design</h1>
h1 {
padding: .5rem 1rem;
border-bottom: 4px dotted rgb(226, 196, 126);
}
header design
<h1>header design</h1>
h1 {
padding: .5rem 1rem;
border-bottom: 4px double rgb(226, 196, 126);
}
header design
<h1>header design</h1>
h1 {
padding: .5rem 1rem;
border-left: 4px solid;
border-image: linear-gradient(to bottom, red, blue);
border-image-slice: 1;
}
header design
<h1>header design</h1>
h1 {
padding: .5rem 1rem;
border-bottom: 4px solid;
border-image: linear-gradient(to right, red, rgba(0, 0, 255, 0.3) 60%);
border-image-slice: 1;
}
header design
<h1>header design</h1>
h1 {
padding: 1rem 1.5rem;
border: 4px double rgb(226, 196, 126);
}
header design
<h1>header design</h1>
h1 {
padding: 1rem 1.5rem;
border: 2px solid rgb(226, 196, 126);
position: relative;
}
h1::before {
content: '';
position: absolute;
top: 3px;
left: 3px;
width: calc(100% - 10px);
height: calc(100% - 10px);
border: 2px dashed rgb(226, 196, 126);
}
header design
<h1>header design</h1>
h1 {
padding: .5rem 1rem;
background: rgb(233, 220, 189);
border-left: 4px solid rgb(226, 196, 126);
border-bottom: 4px solid rgb(133, 116, 75);
}
header design
<h1>header design</h1>
h1 {
padding: 1rem 1.5rem;
background: rgb(233, 220, 189);
transform: skew(-10deg);
border-left: 4px solid rgb(226, 196, 126);
border-bottom: 4px solid rgb(133, 116, 75);
}
header design
<h1>header design</h1>
h1 {
padding: 1rem 1.5rem;
background: rgb(233, 220, 189);
clip-path: polygon(0 0, 100% 0, 95% 10%, 100% 20%, 95% 30%, 100% 40%, 95% 50%, 100% 60%, 95% 70%, 100% 80%, 95% 90%, 100% 100%, 0% 100%, 5% 90%, 0% 80%, 5% 70%, 0% 60%, 5% 50%, 0% 40%, 5% 30%, 0% 20%, 5% 10%, 0% 0%);
}
header design
<h1>header design</h1>
h1 {
padding: 1rem 1.5rem;
background: rgb(233, 220, 189);
border-radius: 25px;
position: relative;
}
h1::before {
content: '';
position: absolute;
top: 3px;
left: 3px;
width: calc(100% - 10px);
height: calc(100% - 10px);
border-radius: 25px;
border: 2px dashed #fff;
}
header design
<h1>header design</h1>
h1 {
padding: 1rem 1.5rem;
background: rgb(233, 220, 189);
position: relative;
/* offset-x | offset-y | blur-radius | spread-radius | color */
box-shadow: 5px 5px 0px 1px rgb(133, 116, 75);
border: 4px solid #000;
}
header design
<h1>header design</h1>
h1 {
padding: 1rem 1.5rem;
background-image: linear-gradient(to right, red 0%, blue 100%);
color: #fff;
}
header design
<h1>header design</h1>
h1 {
padding: 1rem 1.5rem;
color: #fff;
background-image: linear-gradient(to right, blue 0%, red 100%);
border: 4px solid;
border-image: linear-gradient(to right, red, rgba(0, 0, 255, 0.3) 60%);
border-image-slice: 1;
}
header design
<h1>header design</h1>
h1 {
padding: 1rem 1.5rem;
background: repeating-linear-gradient(-45deg, rgb(233, 220, 189), rgb(233, 220, 189) 5px, #fff 5px, #fff 15px);
border: 4px solid rgb(133, 116, 75);
}
header design
<h1>header design</h1>
h1 {
padding: 1rem 1.5rem 2rem 1.5rem;
position: relative;
border: 2px solid #000;
}
h1::before {
content: '';
position: absolute;
bottom: 0px;
left: 0;
width: 100%;
height: 8px;
background-color: rgba(133, 116, 75, 1);
opacity: 0.8;
background: repeating-linear-gradient(-45deg, rgb(233, 220, 189), rgb(233, 220, 189) 3px, rgb(133, 116, 75) 3px, rgb(133, 116, 75) 15px);
background-position: 0 0, 10px 10px;
background-size: 20px 20px;
border-top: 2px solid #000;
}
header design
<h1>header design</h1>
h1 {
padding: 1rem 1.5rem;
background: #fff;
border-radius: 25px;
box-shadow: -.2rem -.2rem .6rem #fff,
.4rem .4rem .6rem #c8d0e7;
}
header design
<h1>header design</h1>
h1 {
padding: 1rem 1.5rem;
border-radius: 25px;
background: #fff;
box-shadow: inset -.2rem -.2rem .6rem #c8d0e7,
inset .4rem .4rem .6rem #fff;
}
header design
<h1>header design</h1>
h1 {
padding: .1rem 1.5rem;
background-image: linear-gradient(90deg, rgba(239, 39, 129, 0.4), rgba(239, 39, 129, 0.2) 20%, rgba(239, 39, 129, 0.2) 30%, rgba(239, 39, 129, 0.1));
background-repeat: no-repeat;
background-position: bottom left;
background-size: 100% 40%;
}
header design
<h1>header design</h1>
h1 {
padding: 1rem 4rem;
position: relative;
}
h1::before {
content: '';
position: absolute;
top: 50%;
left: 0;
width: 25px;
height: 4px;
background: rgb(233, 220, 189);
border-radius: 5px;
}
h1::after {
content: '';
position: absolute;
top: 50%;
right: 0;
width: 25px;
height: 4px;
background: rgb(233, 220, 189);
border-radius: 5px;
}
header design
<h1>header design</h1>
h1 {
padding: 1rem 3rem;
position: relative;
}
h1::before {
content: '';
position: absolute;
top: 50%;
left: 0;
width: 30px;
height: 4px;
background: rgb(233, 220, 189);
border-radius: 5px;
transform: translateY(-50%) rotate(60deg);
}
h1::after {
content: '';
position: absolute;
top: 50%;
right: 0;
width: 30px;
height: 4px;
background: rgb(233, 220, 189);
border-radius: 5px;
transform: translateY(-50%) rotate(60deg);
}
header design
<h1>header design</h1>
h1 {
padding: 1rem 1.5rem;
position: relative;
}
h1::before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 255, 0.3);
clip-path: polygon(0 100%, 100% calc(100% - 30px), 100% 100%);
}
h1::after {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 255, 0.3);
clip-path: polygon(0 100%, 100% calc(100% - 15px), 100% 100%);
}
header design
<h1>header design</h1>
h1 {
padding: 1rem 1.5rem;
position: relative;
}
h1::before {
content: '';
position: absolute;
width: 100%;
height: 100%;
top: 0;
left: 0;
background: rgb(233, 220, 189);
clip-path: polygon(0 0, 50% 0, 40% 25%, 50% 50%, 40% 75%, 50% 100%, 0% 100%);
z-index: -1;
}
h1::after {
content: '';
position: absolute;
width: 100%;
height: 100%;
top: 0;
left: 0;
background: rgb(226, 196, 126);
clip-path: polygon(50% 0, 100% 0, 100% 100%, 50% 100%, 40% 75%, 50% 50%, 40% 25%);
z-index: -1;
}
header design
<h1>header design</h1>
h1 {
padding: 1rem 1.5rem;
position: relative;
}
h1::before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 20px;
height: 20px;
border-top: 4px solid rgb(233, 220, 189);
border-left: 4px solid rgb(233, 220, 189);
}
h1::after {
content: '';
position: absolute;
bottom: 0;
right: 0;
width: 20px;
height: 20px;
border-bottom: 4px solid rgb(233, 220, 189);
border-right: 4px solid rgb(233, 220, 189);
}
header design
<h1>header design</h1>
h1 {
padding: 1rem 1.5rem;
position: relative;
}
h1::before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 20px;
height: 100%;
border-top: 4px solid rgb(233, 220, 189);
border-bottom: 4px solid rgb(233, 220, 189);
border-left: 4px solid rgb(233, 220, 189);
}
h1::after {
content: '';
position: absolute;
top: 0;
right: 0;
width: 20px;
height: 100%;
border-top: 4px solid rgb(233, 220, 189);
border-bottom: 4px solid rgb(233, 220, 189);
border-right: 4px solid rgb(233, 220, 189);
}
header design
<h1>header design</h1>
h1 {
padding: 1rem 1.5rem;
position: relative;
}
h1::before {
content: '';
position: absolute;
background: rgb(233, 220, 189);
top: 50%;
left: 50%;
width: 120px;
height: 120px;
transform: translate(-50%, -50%);
border-radius: 50%;
border: 2px dashed #fff;
box-shadow: 0 0 0 5px rgb(233, 220, 189);
z-index: -1;
}
h1::after {
content: '';
position: absolute;
background: #fff;
top: 50%;
left: 50%;
width: 40px;
height: 40px;
transform: translate(-50%, -50%);
border-radius: 50%;
z-index: -1;
}
header design
<h1>header design</h1>
h1 {
padding: 1rem 1.5rem 1rem 4rem;
position: relative;
background: rgb(233, 220, 189);
clip-path: polygon(0% 20%, 5% 0, 100% 0, 100% 100%, 5% 100%, 0% 80%);
}
h1::before {
content: '';
position: absolute;
top: 50%;
left: 10px;
transform: translateY(-50%);
width: 25px;
height: 25px;
border-radius: 50%;
background: rgb(226, 196, 126);
}
h1::after {
content: '';
position: absolute;
top: 50%;
left: 17.5px;
transform: translateY(-50%);
width: 10px;
height: 10px;
border-radius: 50%;
background: #fff;
}
header design
<h1>header design</h1>
h1 {
padding: 1rem 1.5rem;
position: relative;
background: rgb(233, 220, 189);
}
h1::before {
content: '';
position: absolute;
top: 0;
right: 0;
border-top: 10px solid #fff;
border-right: 10px solid #fff;
border-left: 10px solid rgb(133, 116, 75);
border-bottom: 10px solid rgb(133, 116, 75);
}
header design
<h1>header design</h1>
h1 {
padding: 1rem 1.5rem;
position: relative;
background: rgb(233, 220, 189);
}
h1::before {
content: '';
position: absolute;
top: 100%;
right: 0;
border-top: 10px solid rgb(133, 116, 75);
border-left: 10px solid rgb(133, 116, 75);
border-bottom: 10px solid #fff;
border-right: 10px solid #fff;
}
h1::after {
content: '';
position: absolute;
top: 100%;
left: 0;
border-top: 10px solid rgb(133, 116, 75);
border-right: 10px solid rgb(133, 116, 75);
border-bottom: 10px solid #fff;
border-left: 10px solid #fff;
}
header design
<h1><span>header design</span></h1>
h1 {
position: relative;
padding: 1rem 4.5rem;
background: rgb(233, 220, 189);
transform: skew(-20deg);
box-shadow: 0 2px 0 0 rgba(74, 74, 74, 0.527);
}
h1::before {
content: '';
position: absolute;
top: 100%;
right: 0;
border-top: 10px solid rgb(133, 116, 75);
border-left: 10px solid rgb(133, 116, 75);
border-bottom: 10px solid transparent;
border-right: 10px solid transparent;
}
h1::after {
content: '';
position: absolute;
top: 100%;
left: 0;
border-top: 10px solid rgb(133, 116, 75);
border-right: 10px solid rgb(133, 116, 75);
border-bottom: 10px solid transparent;
border-left: 10px solid transparent;
}
h1 span {
width: 100%;
height: 100%;
}
h1 span::before {
content: '';
position: absolute;
bottom: -20px;
left: -30px;
width: 50px;
height: 40px;
background: rgb(233, 220, 189);
z-index: -1;
clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 20px 50%);
}
h1 span::after {
content: '';
position: absolute;
bottom: -20px;
right: -30px;
width: 50px;
height: 40px;
background: rgb(233, 220, 189);
z-index: -1;
clip-path: polygon(0 0, 100% 0, calc(100% - 20px) 50%, 100% 100%, 0 100%);
}
header design
<h1>header design</h1>
h1 {
padding: 1rem 1.5rem 1.5rem 6rem;
position: relative;
background: rgb(233, 220, 189);
}
h1::before {
content: '';
position: absolute;
top: -10px;
left: 50px;
border-bottom: 5px solid rgb(133, 116, 75);
border-left: 5px solid rgb(133, 116, 75);
border-top: 5px solid var(--bg-color);
border-right: 5px solid var(--bg-color);
}
h1::after {
content: 'Font Awesome 6 Free';
font-weight: 500;
content: '\f118';
display: flex;
align-items: center;
padding: 5px 0;
justify-content: center;
position: absolute;
color: rgb(79, 113, 224);
top: -10px;
left: 10px;
width: 40px;
height: 50px;
background: rgb(204, 243, 250);
clip-path: polygon(0 0, 100% 0, 100% 100%, 50% calc(100% - 10px), 0 100%);
}
header design
<h1 class="header34"><i class='bx bx-wink-smile'></i>header design</h1>
h1 {
padding: 1rem 1.5rem 1.5rem 6rem;
position: relative;
background: rgb(233, 220, 189);
}
h1::before {
content: '';
position: absolute;
top: 45px;
left: -10px;
border-top: 5px solid rgb(133, 116, 75);
border-right: 5px solid rgb(133, 116, 75);
border-bottom: 5px solid #fff;
border-left: 5px solid #fff;
}
h1 i {
display: flex;
/* justify-content: center; */
align-items: center;
position: absolute;
padding: 0 5px;
color: rgb(79, 113, 224);
font-weight: 500;
top: 5px;
left: -10px;
width: 50px;
height: 40px;
background: rgb(204, 243, 250);
clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 50%, 100% 100%, 0 100%);
}
header design
<h1>header design</h1>
h1 {
padding: 1rem 1.5rem;
position: relative;
background: rgb(233, 220, 189);
border-radius: 10px;
}
h1::before {
content: '';
position: absolute;
top: 100%;
left: 20px;
border-top: 10px solid rgb(233, 220, 189);
border-right: 10px solid transparent;
border-bottom: 10px solid transparent;
border-left: 10px solid transparent;
}
header design
<h1>header design</h1>
h1 {
padding: 1rem 1.5rem;
position: relative;
background: rgb(233, 220, 189);
border-radius: 10px;
border: 4px solid #000;
}
h1::before {
content: '';
position: absolute;
top: 100%;
left: 14px;
border-top: 16px solid #000;
border-right: 16px solid transparent;
border-bottom: 16px solid transparent;
border-left: 16px solid transparent;
}
h1::after {
content: '';
position: absolute;
top: 100%;
left: 20px;
border-top: 10px solid rgb(233, 220, 189);
border-right: 10px solid transparent;
border-bottom: 10px solid transparent;
border-left: 10px solid transparent;
}
header design
<h1>header design</h1>
h1 {
padding: 1rem 1.5rem;
position: relative;
background: rgb(233, 220, 189);
}
h1::before {
content: '';
position: absolute;
top: 100%;
left: 0;
width: 25px;
height: 20px;
background: rgb(233, 220, 189);
}
h1::after {
content: '';
position: absolute;
top: 100%;
left: 0;
width: 50px;
height: 40px;
border-radius: 50%;
background: var(--bg-color);
}
header design
<h1>header design</h1>
h1 {
padding: 1rem 3.5rem;
position: relative;
background: rgb(233, 220, 189);
}
h1::before {
content: '';
position: absolute;
bottom: 0;
left: -15px;
width: 20px;
height: 20px;
background: rgb(233, 220, 189);
border-radius: 50%;
}
h1::after {
content: '';
position: absolute;
bottom: 0;
left: -25px;
width: 10px;
height: 10px;
background: rgb(233, 220, 189);
border-radius: 50%;
}
header design
<h1 class="header34"><i class='bx bx-wink-smile'></i>header design</h1>
h1 {
padding: 1rem 1.5rem 1rem 6rem;
position: relative;
background: rgb(226, 196, 126);
}
h1 i {
padding: .5rem;
background: #fff;
position: absolute;
top: 50%;
left: 10px;
transform: translateY(-50%);
}
header design
<h1 class="header34"><i class='bx bx-wink-smile'></i>header design</h1>
h1 {
padding: .2rem 1rem .2rem 4.5rem;
position: relative;
background: rgb(233, 220, 189);
border-top-left-radius: 25px;
border-bottom-left-radius: 25px;
}
h1 i {
padding: 1.2rem;
border-radius: 50%;
position: absolute;
top: 50%;
left: -10px;
transform: translateY(-50%);
background: rgb(226, 196, 126);
border: 2px solid #fff;
}
header design
<h1 class="header34"><i class='bx bx-wink-smile'></i>header design</h1>
h1 {
padding: .2rem 1rem .2rem 4.5rem;
position: relative;
background: rgb(233, 220, 189);
border-top-left-radius: 25px;
border-bottom-left-radius: 25px;
}
h1 i {
padding: 1.2rem;
border-radius: 50%;
position: absolute;
top: 50%;
left: -10px;
transform: translateY(-50%);
background: rgb(226, 196, 126);
box-shadow: 0 2px 5px 0px rgba(0, 0, 0, 0.5),
0px -2px 3px 0px rgba(255, 255, 255, 0.5);
}
header design
<h1>header design</h1>
h1 {
padding: 1rem 1.5rem 1rem 3.5rem;
position: relative;
background: rgb(233, 220, 189);
}
h1::before {
content: 'point';
width: 20px;
height: 100%;
position: absolute;
top: 0;
left: 0;
background: rgb(226, 196, 126);
color: #fff;
font-size: 1.2rem;
writing-mode: vertical-rl;
text-align: center;
line-height: 20px;
transform: rotate(180deg);
}
pointheader design
<h1 class="header43"><span>point<i class='bx bx-wink-smile'></i></span>header design</h1>
h1 {
padding: 1rem 1.5rem 1rem 3.5rem;
position: relative;
background: rgb(233, 220, 189);
}
h1 span {
width: 20px;
height: 100%;
position: absolute;
top: 0;
left: 0;
background: rgb(226, 196, 126);
color: #fff;
font-size: 1rem;
writing-mode: vertical-rl;
display: flex;
align-items: center;
justify-content: center;
gap: .5rem;
transform: rotate(180deg);
}
h1 i {
transform: rotate(90deg);
font-size: 1.5rem;
}
pointheader design
<h1 class="header43"><span>point<i class='bx bx-wink-smile'></i></span>header design</h1>
h1 {
padding: 1rem 1.5rem;
position: relative;
background: rgb(233, 220, 189);
}
h1 span {
height: 20px;
position: absolute;
padding: 0 1rem;
top: -20px;
left: 0;
background: rgb(226, 196, 126);
color: #fff;
font-size: 1.4rem;
display: flex;
align-items: center;
justify-content: center;
gap: .5rem;
border-top-left-radius: 5px;
border-top-right-radius: 5px;
}
header design
<h1>header design</h1>
h1 {
padding: 1rem 2.5rem;
}
h1:first-letter {
font-size: 5rem;
color: rgb(233, 220, 189);
text-transform: uppercase;
}
header design
<h1>header design</h1>
h1 {
padding: 1rem 1.5rem;
color: #fff;
background: rgb(233, 220, 189);
text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}
header design
<h1>header design</h1>
h1 {
padding: 1rem 1.5rem;
font-size: 3rem;
letter-spacing: .2rem;
color: rgb(226, 196, 126);
text-shadow: -3px 3px 0 rgb(233, 220, 189);
}
header design
<h1>header design</h1>
h1 {
padding: 1rem 1.5rem;
color: #fff;
font-weight: bold;
letter-spacing: .2rem;
/* offset-x | offset-y | blur-radius | color */
text-shadow: 1px 1px 0 rgb(226, 196, 126),
-1px 1px 0 rgb(226, 196, 126),
1px -1px 0 rgb(226, 196, 126),
-1px -1px 0 rgb(226, 196, 126);
}
header design
<h1>header design</h1>
h1 {
padding: 1rem 1.5rem;
background-clip: text;
color: transparent;
background: radial-gradient(circle, rgba(101, 127, 255, 0.8379945728291316) 0%, rgba(172, 217, 65, 0.7063419117647058) 36%, rgba(216, 69, 213, 0.686734068627451) 73%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
header design
<h1>header design</h1>
h1 {
padding: 1rem 1.5rem;
background: #000;
/* filter: hue-rotate(120deg); */
color: #fff;
/* animation: neon 1.5s ease-in-out infinite alternate; */
text-shadow: 0 0 5px #fff, 0 0 10px #fff, 0 0 15px #fff, 0 0 20px #1b91ff,
0 0 25px #1b91ff, 0 0 30px #1b91ff, 0 0 50px #1b91ff;
}
@keyframes neon {
from {
text-shadow: 0 0 10px #fff, 0 0 20px #fff, 0 0 30px #fff, 0 0 40px #1b91ff,
0 0 50px #1b91ff, 0 0 60px #1b91ff, 0 0 70px #1b91ff, 0 0 80px #1b91ff;
}
to {
text-shadow: 0 0 5px #fff, 0 0 10px #fff, 0 0 15px #fff, 0 0 20px #1b91ff,
0 0 25px #1b91ff, 0 0 30px #1b91ff, 0 0 40px #1b91ff, 0 0 50px #1b91ff;
}
}
header design
<h1>header design</h1>
h1 {
padding: 1rem 1.5rem;
background: #000;
filter: hue-rotate(120deg);
color: #fff;
text-shadow: 0 0 5px #fff, 0 0 10px #fff, 0 0 15px #fff, 0 0 20px #1b91ff,
0 0 25px #1b91ff, 0 0 30px #1b91ff, 0 0 50px #1b91ff;
-webkit-box-reflect: below 3px -webkit-gradient(linear, left top, left bottom, from(transparent),color-stop(0.1, transparent), to(#fff));
}