css - Change to hexagon bootstrap indicator -
how style bootstrap indicator small hexagon?
i styled rectangle, can't set hexagon.
i tried this: http://jsfiddle.net/bn6aa/53/
css:
.carousel-indicators li { background-color: #4f3212; width:20px; border-radius: 0px; } .carousel-indicators .active { background-color: #999; width:20px; border-radius: 0px; }
for hexagon indicators can set css use this:
edit make icons smaller
.carousel-indicators { left: 0; } .carousel-indicators li { width: 24px; height: 15px; background: red; position: relative; line-height: 0; margin: 0 20px 0 0; padding: 0; border: 0; border-radius: 0; } .carousel-indicators li:before { content: ""; position: absolute; top: -10px; left: 0; width: 0; height: 0; border-left: 12px solid transparent; border-right: 12px solid transparent; border-bottom: 10px solid red; } .carousel-indicators li:after { content: ""; position: absolute; bottom: -10px; left: 0; width: 0; height: 0; border-left: 12px solid transparent; border-right: 12px solid transparent; border-top: 10px solid red; } /*active*/ .carousel-indicators li.active { background: gray; } .carousel-indicators li.active:before { border-bottom-color: gray; } .carousel-indicators li.active:after { border-top-color: gray; } you have lot of adjusting based on how big want hexagons , want them exist on slider should going. hexagons i used pages example here has ton of other resources. can see your updated fiddle here. hope helps.
edit: in order make icons smaller need play width , height of .carousel-indicators li border-left, border-right border-top, border-bottom property numbers of .carousel-indicatorsli:before , .carousel-indicators li:after need adjust top , bottom positions. here updated fiddle.
Comments
Post a Comment