홈페이지

기술지원

관리자 2019-09-28 11:24:14
0 46

사각형

#square{ width: 100px; height: 100px; background: pink; }

 

직사각형

#rectangle { width: 200px; height: 100px; background: pink; }

 

마름모

#diamond { width: 0; height: 0; border: 50px solid transparent; border-bottom-color: pink; position: relative; top: -50px; } #diamond:after { content: ''; position: absolute; left: -50px; top: 50px; width: 0; height: 0; border: 50px solid transparent; border-top-color: pink; }

 

#circle { width: 100px; height: 100px; background: pink; border-radius: 50% }

 

삼각형

#triangle-up { width: 0; height: 0; border-left: 50px solid transparent; border-right: 50px solid transparent; border-bottom: 100px solid pink; }

 

아래보는 삼각형

#triangle-down { width: 0; height: 0; border-left: 50px solid transparent; border-right: 50px solid transparent; border-top: 100px solid pink; }

 

삼각형 왼쪽 중심

#triangle-left { width: 0; height: 0; border-top: 50px solid transparent; border-right: 100px solid pink; border-bottom: 50px solid transparent; }

 

삼각형 오른쪽 중심

#triangle-right { width: 0; height: 0; border-top: 50px solid transparent; border-left: 100px solid pink; border-bottom: 50px solid transparent; }

 

삼각형 상단 왼쪽 90도

#triangle-topleft { width: 0; height: 0; border-top: 100px solid pink; border-right: 100px solid transparent; }

 

삼각형 상단 오른쪽 90도

#triangle-topright { width: 0; height: 0; border-top: 100px solid pink; border-left: 100px solid transparent; }

 

삼각형 하단 왼쪽 90도

#triangle-bottomleft { width: 0; height: 0; border-bottom: 100px solid pink; border-right: 100px solid transparent; }

 

삼각형 하단 오른쪽90도

#triangle-bottomright { width: 0; height: 0; border-bottom: 100px solid pink; border-left: 100px solid transparent; }

 

5각별

#star-five { margin: 50px 0; position: relative; display: block; color: pink; width: 0px; height: 0px; border-right: 100px solid transparent; border-bottom: 70px solid pink; border-left: 100px solid transparent; transform: rotate(35deg); } #star-five:before { border-bottom: 80px solid pink; border-left: 30px solid transparent; border-right: 30px solid transparent; position: absolute; height: 0; width: 0; top: -45px; left: -65px; display: block; content: ''; transform: rotate(-35deg); } #star-five:after { position: absolute; display: block; color: pink; top: 3px; left: -105px; width: 0px; height: 0px; border-right: 100px solid transparent; border-bottom: 70px solid pink; border-left: 100px solid transparent; transform: rotate(-70deg); content: ''; }

 

6각 별

#star-six { width: 0; height: 0; border-left: 50px solid transparent; border-right: 50px solid transparent; border-bottom: 100px solid pink; position: relative; } #star-six:after { width: 0; height: 0; border-left: 50px solid transparent; border-right: 50px solid transparent; border-top: 100px solid pink; position: absolute; content: ""; top: 30px; left: -50px; }

 

오각형

#pentagon { position: relative; width: 54px; box-sizing: content-box; border-width: 50px 18px 0; border-style: solid; border-color: pink transparent; } #pentagon:before { content: ""; position: absolute; height: 0; width: 0; top: -85px; left: -18px; border-width: 0 45px 35px; border-style: solid; border-color: transparent transparent pink; }

 

육각형

#hexagon { width: 100px; height: 55px; background: pink; position: relative; } #hexagon:before { content: ""; position: absolute; top: -25px; left: 0; width: 0; height: 0; border-left: 50px solid transparent; border-right: 50px solid transparent; border-bottom: 25px solid pink; } #hexagon:after { content: ""; position: absolute; bottom: -25px; left: 0; width: 0; height: 0; border-left: 50px solid transparent; border-right: 50px solid transparent; border-top: 25px solid pink; }

 

팔각형

#octagon { width: 100px; height: 100px; background: pink; position: relative; } #octagon:before { content: ""; width: 100px; height: 0; position: absolute; top: 0; left: 0; border-bottom: 29px solid pink; border-left: 29px solid #eee; border-right: 29px solid #eee; } #octagon:after { content: ""; width: 100px; height: 0; position: absolute; bottom: 0; left: 0; border-top: 29px solid pink; border-left: 29px solid #eee; border-right: 29px solid #eee; }

 

하트

#heart { position: relative; width: 100px; height: 90px; } #heart:before, #heart:after { position: absolute; content: ""; left: 50px; top: 0; width: 50px; height: 80px; background: pink; border-radius: 50px 50px 0 0; transform: rotate(-45deg); transform-origin: 0 100%; } #heart:after { left: 0; transform: rotate(45deg); transform-origin: 100% 100%; }

 

다이아몬드

#cut-diamond { border-style: solid; border-color: transparent transparent pink transparent; border-width: 0 25px 25px 25px; height: 0; width: 50px; box-sizing: content-box; position: relative; margin: 20px 0 50px 0; } #cut-diamond:after { content: ""; position: absolute; top: 25px; left: -25px; width: 0; height: 0; border-style: solid; border-color: pink transparent transparent transparent; border-width: 70px 50px 0 50px; }

 

라벨모양

#flag { width: 110px; height: 56px; box-sizing: content-box; padding-top: 15px; position: relative; background: pink; color: white; font-size: 11px; letter-spacing: 0.2em; text-align: center; text-transform: uppercase; } #flag:after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 0; border-bottom: 13px solid #eee; border-left: 55px solid transparent; border-right: 55px solid transparent; }

 

 

프린트앰
profile
사진 및 파일 첨부

여기에 파일을 끌어 놓거나 왼쪽의 버튼을 클릭하세요.

파일 크기 제한 : 0MB (허용 확장자 : *.*)

0개 첨부 됨 ( / )
겁쟁이사자들 1기
서버에 요청 중입니다. 잠시만 기다려 주십시오...