I am trying to create next/prev button similar to flexslider default button.
But I want to do that using div and classes.
My mark up is shown below:
<div class="dirnav">
<div id="next"> Next </div>
<div id="prev" > Prev </div>
</div>
.dirnav
the arrows must come inside from left and right.How can I do this ?
[EDIT: JSFIDDLE LINK UPDATED]
Add this code for elements
.dirnav {overflow: hidden;}
#next {margin-left: -30px;}
#prev {margin-right: -30px;}
.dirnav:hover #prev,
.dirnav:hover #next{margin: 0;}
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.