jquery - How to code vertical banner -
i have found solution vertical banner use in mine bootstrap 3 responsive design, modify , need because failing grasp concept of coding mine banner looks this.
this solution have found.
css , html follows
div { background: deeppink; height: 30px; width: 30px; position: relative; text-align: center; font: 600 16px sans-serif; color: #fff; line-height: 27px; border: 0; } div:after { content: ""; position: absolute; bottom: -18px; left: 0; height: 0; width: 0; border: solid 15px deeppink; border-bottom-color: transparent; } div:hover { background: purple; } div:hover:after { border-color: purple; border-bottom-color: transparent; }
<div> </div>
see fiddle banner here. how can modify banner lock more mine banner, how can make head of example banner look's pointy on picture. can me make this, thank you.
*{ padding: 0; margin: 0; box-sizing: border-box; } body{ padding: 50px; } div { background: #1589a1; padding: 20px; position: relative; color: #fff; width: 100px; min-height: 70px; font: 600 16px sans-serif; color: #fff; } div:after { content:''; position: absolute; left: 50%; bottom: -100px; border: 50px solid transparent; border-top: 50px solid #1589a1; -webkit-transform: translate(-50%, 0); -ms-transform: translate(-50%, 0); transform: translate(-50%, 0); } div span{ padding: 30px 0 30px; position: relative; display: block; z-index: 1; -webkit-transform: rotate(-90deg); -moz-transform: rotate(-90deg); -o-transform: rotate(-90deg); transform: rotate(-90deg); }
<div> <span>solution</span> <span>solution</span> </div>
Comments
Post a Comment