html - Cycle 2 Prev and Next -
good evening, i'm using cycle2 prev , next function, cannot centre prev , next function under images. i've looked around , know going stupid, cannot see it. frustrating. gary
<script src="../../respond.min.js"></script> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script> <script src="http://malsup.github.com/jquery.cycle2.js"></script> <script src="http://malsup.github.io/jquery.cycle2.center.js"></script>
@charset "utf-8"; /* simple fluid media note: fluid media requires remove media's height , width attributes html http://www.alistapart.com/articles/fluid-images/ */ img, object, embed, video { max-width: 100%; } /* ie 6 not support max-width default width 100% */ .ie6 img { width:100%; } /* dreamweaver fluid grid properties ---------------------------------- dw-num-cols-mobile: 4; dw-num-cols-tablet: 8; dw-num-cols-desktop: 12; dw-gutter-percentage: 25; inspiration "responsive web design" ethan marcotte http://www.alistapart.com/articles/responsive-web-design and golden grid system joni korpi http://goldengridsystem.com/ */ .fluid { clear: both; margin-left: 0; width: 100%; float: left; display: block; } .fluidlist { list-style:none; list-style-image:none; margin:0; padding:0; } /* mobile layout: 480px , below. */ .gridcontainer { margin-left: auto; margin-right: auto; width: 86.45%; padding-left: 2.275%; padding-right: 2.275%; clear: none; float: none; } #div1 { } .gallery { } .zeromargin_mobile { margin-left: 0; } .hide_mobile { display: none; } /* tablet layout: 481px 768px. inherits styles from: mobile layout. */ @media screen , (min-width: 481px) { .gridcontainer { width: 90.675%; padding-left: 1.1625%; padding-right: 1.1625%; clear: none; float: none; margin-left: auto; } #div1 { } .gallery { } .hide_tablet { display: none; } .zeromargin_tablet { margin-left: 0; } } /* desktop layout: 769px max of 1232px. inherits styles from: mobile layout , tablet layout. */ @media screen , (min-width: 769px) { .gridcontainer { width: 88.5%; max-width: 1232px; padding-left: 0.75%; padding-right: 0.75%; margin: auto; clear: none; float: none; margin-left: auto; } #div1 { } .gallery { } .zeromargin_desktop { margin-left: 0; } .hide_desktop { display: none; }
<body> <div class="gridcontainer clearfix"> <div id="div1" class="fluid"></div> <div class="fluid gallery"> <br /> <br /> <div class="cycle-slideshow" data-cycle-fx="scrollhorz" data-cycle-timeout="0" data-cycle-prev="#prev" data-cycle-next="#next" data-cycle-center-horz=true data-cycle-center-vert=true > <img src="http://malsup.github.io/images/p1.jpg"> <img src="http://malsup.github.io/images/p2.jpg"> <img src="http://malsup.github.io/images/p3.jpg"> <img src="http://malsup.github.io/images/p4.jpg"> </div> <br /> <br /> <div class="center"> <span style="text-align: center; text-decoration: none; font:open-sans; font-size:12px; color:#000000;"> <a href=# id="prev">prev</a> <a href=# id="next">next</a></span> </div> </div> </div> </body>
you need add text-align center container div:
div.center {text-align:center;}
Comments
Post a Comment