2017-12-28 36 views

답변

0

border css 속성을 사용하여 삼각형을 만들 수 있습니다. 더 모양이 링크 밖으로

확인 : https://css-tricks.com/examples/ShapesOfCSS/

.container { 
 
    position: relative; 
 
} 
 
.mission { 
 
    position: absolute; 
 
    width: 0; 
 
    height: 0; 
 
    border-left: 0px solid transparent; 
 
    border-right: 100px solid transparent; 
 
    border-top: 150px solid red; 
 
    border-bottom: 0px solid transparent; 
 
} 
 

 
.mission + div { 
 
    position: absolute; 
 
} 
 

 
.content { 
 
    position: absolute; 
 
    width: 350px; 
 
    height: 200px; 
 
    background: lightgrey; 
 
    padding-left: 100px; 
 
}
<div class="container"> 
 
    <div class="content"> 
 
    Content 
 
    </div> 
 
    <div class="mission"> 
 
    </div> 
 
    <div> 
 
    Mission 
 
    </div> 
 
</div>