サンプル8
sample9
sample10
sample11
sample12
sample13
sample14
sample15
#sample1 { background-color: #333; padding: 5px 0 5px 10px; color: white; font-weight: normal; letter-spacing: 2px; margin-top: 50px; } #sample1:first-letter { font-size: 2em; } #sample2 { position: relative; padding: .75em 1em .75em 1.5em; border: 1px solid #ccc; font-weight: normal; background-color: #777; color: #fff; letter-spacing: 2px; } #sample2:after { position: absolute; top: .5em; left: .5em; content: ''; width: 6px; height: -webkit-calc(100% - 1em); height: calc(100% - 1em); background-color: #eee; border-radius: 4px; } #sample3 { position: relative; text-align: center; } #sample3 span { position: relative; z-index: 2; display: inline-block; padding: 0 1em; color: #333; background-color: #fff; text-align: left; font-weight: normal; font-size: 1.5em; letter-spacing: 0.2em; } #sample3:before { position: absolute; top: 50%; z-index: 1; content: ''; display: block; width: 100%; height: 1.5px; background-color: #bbb; } #sample4 { color: white; font-weight: normal; letter-spacing: 0.2em; padding: 5px 0 5px 10px; background: linear-gradient(30deg, #555, #fff); } #sample5 { position: relative; padding: .5em .75em; background-color: #333; border-radius: 6px; color: #fff; font-weight: normal; letter-spacing: 0.2em; } #sample5:after { position: absolute; top: 100%; left: 50px; content: ''; width: 0; height: 0; border: 10px solid transparent; border-top: 10px solid #333; } #sample6 { position: relative; height: 50px; line-height: 50px; padding: 0 1em; background-color: #ccc; font-weight: normal; } #sample6::before, #sample6::after { content: ''; position: absolute; } #sample6::before { top: 100%; left: 0; border-width: 0 15px 15px 0; border-style: solid; border-color: transparent; border-right-color: #ccc; } #sample6::after { top: 0; right: 0; z-index: 2; border-width: 25px 20px; border-style: solid; border-color: transparent; border-right-color: #fff; } #sample7 { position: relative; padding: .75em 1em; background: linear-gradient(30deg, #555, #fff); font-weight: normal; color: #fff; } #sample7::before, #sample7::after { content: ''; position: absolute; top: 100%; border-style: solid; border-color: transparent; } #sample7::before { left: 0; border-width: 0 15px 15px 0; border-right-color: #ccc; } #sample8 { position: relative; padding:0.25em 1em; } #sample8:before, #sample8:after{ content:''; width: 20px; height: 30px; position: absolute; display: inline-block; } #sample8:before{ border-left: solid 1px #5767bf; border-top: solid 1px #5767bf; top:0; left: 0; } #sample8:after{ border-right: solid 1px #5767bf; border-bottom: solid 1px #5767bf; bottom:0; right: 0; } #sample8 p { margin: 0; padding: 10px; } #sample9{ margin:2em 0 0 2em; position: relative; padding: 0.5em 1.5em; border-top: solid 2px black; border-bottom: solid 2px black; } #sample9:before, #sample9:after{ content: ''; position: absolute; top: -10px; width: 2px; height: -webkit-calc(100% + 20px); height: calc(100% + 20px); background-color: black; } #sample9:before {left: 10px;} #sample9:after {right: 10px;} #sample9 p { margin: 0; padding: 10px; } #sample10 { padding: 0.2em 0.5em; margin: 2em 0 0 2em; color: #565656; background: #ffeaea; box-shadow: 0px 0px 0px 10px #ffeaea; border: dashed 2px #ffc3c3; border-radius: 8px; } #sample10 p { margin: 0; padding: 10px; } #sample11{ margin:2em 0 0 2em; position: relative; padding: 0.25em 1em; border: solid 2px #ffcb8a; border-radius: 3px 0 3px 0; } #sample11:before, #sample11:after { content: ''; position: absolute; width:10px; height: 10px; border: solid 2px #ffcb8a; border-radius: 50%; } #sample11:after { top:-12px; left:-12px; } #sample11:before { bottom:-12px; right:-12px; } #sample11 p { margin: 0; padding: 10px; } #sample12 { position: relative; margin: 2em 0 0 2em; padding: 0.5em 1em; border: solid 3px #95ccff; border-radius: 8px; } #sample12 span { position: absolute; display: inline-block; top: -13px; left: 10px; padding: 0 9px; line-height: 1; font-size: 19px; background: #FFF; color: #95ccff; font-weight: bold; } #sample12 p { margin: 0; padding: 10px; } #sample13 { position: relative; margin: 2em 0 0 2em; padding: 0.5em 1em; border: solid 3px #62c1ce; } #sample13 span { position: absolute; display: inline-block; top: -27px; left: -3px; padding: 0 9px; height: 25px; line-height: 25px; vertical-align: middle; font-size: 17px; background: #62c1ce; color: #ffffff; font-weight: bold; border-radius: 5px 5px 0 0; } #sample13 p { margin: 0; padding: 10px; } #sample14 { position: relative; margin: 2em 0 0 2em; padding: 25px 10px 7px; border: solid 2px #FFC107; } #sample14 span { position: absolute; display: inline-block; top: -2px; left: -2px; padding: 0 9px; height: 25px; line-height: 25px; vertical-align: middle; font-size: 17px; background: #FFC107; color: #ffffff; font-weight: bold; } #sample14 p { margin: 0; padding: 10px; } #sample15{ padding: 0.5em 1em; margin: 2em 0 0 2em; background: -webkit-repeating-linear-gradient(-45deg, #f0f8ff, #f0f8ff 3px,#e9f4ff 3px, #e9f4ff 7px); background: repeating-linear-gradient(-45deg, #f0f8ff, #f0f8ff 3px,#e9f4ff 3px, #e9f4ff 7px); } #sample15 p { margin: 0; padding: 0; } #sample16 { border: 4px solid #82636b; border-radius: 240px 15px 185px 15px / 15px 200px 15px 185px; margin: 2em 0 0 2em; padding: 1em; }