Template:Team:Amsterdamjs-image-slider.css

From 2012.igem.org

Revision as of 23:36, 26 September 2012 by MaartenR (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

<head> <style> /* http://www.menucool.com */

  1. sliderFrame {position:relative;width:700px;margin: 0 auto;} /*remove the "margin:0 auto;" if you want to align the whole slider to the left side*/
  1. ribbon {width:111px;height:111px;position:absolute;top:-4px;left:-4px;background:url(ribbon.png) no-repeat;z-index:7;}
  1. slider {
   width:700px;height:306px;/* Make it the same size as your images */

background:#fff url(loading.gif) no-repeat 50% 50%; position:relative; margin:0 auto;/*make the image slider center-aligned */

   box-shadow: 0px 1px 5px #999999;

}

  1. slider img {

position:absolute; border:none; display:none; }

/* the link style (if an image is wrapped in a link) */

  1. slider a.imgLink {

z-index:2; display:none;position:absolute; top:0px;left:0px;border:0;padding:0;margin:0; width:100%;height:100%; }

/* Caption styles */ div.mc-caption-bg, div.mc-caption-bg2 { position:absolute; width:100%; height:auto; padding:0; left:0px; /*if the caption needs to be aligned from right, specify by right instead of left. i.e. right:20px;*/ bottom:0px;/*if the caption needs to be aligned from top, specify by top instead of bottom. i.e. top:150px;*/ z-index:3; overflow:hidden; font-size: 0; } div.mc-caption-bg { background-color:black; } div.mc-caption { font: bold 14px/20px Arial; color:#EEE; z-index:4; padding:10px 0;/*Adding a padding-left or padding-right here will make the caption area wider than its background. Sometimes you may need to define its width again here to keep it the same width as its background area (div.mc-caption-bg).*/ text-align:center; } div.mc-caption a { color:#FB0; } div.mc-caption a:hover { color:#DA0; }


/* ------ built-in navigation bullets wrapper ------*/ div.navBulletsWrapper { top:320px; left:280px; /* Its position is relative to the #slider */ width:150px; background:none; padding-left:20px; position:relative; z-index:5; cursor:pointer; }

/* each bullet */ div.navBulletsWrapper div {

   width:11px; height:11px;
   background:transparent url(bullet.png) no-repeat 0 0;
   float:left;overflow:hidden;vertical-align:middle;cursor:pointer;
   margin-right:11px;/* distance between each bullet*/
   _position:relative;/*IE6 hack*/

}

div.navBulletsWrapper div.active {background-position:0 -11px;}


/* --------- Others ------- */

  1. slider

{ transform: translate3d(0,0,0);

   -ms-transform:translate3d(0,0,0);
   -moz-transform:translate3d(0,0,0);
   -o-transform:translate3d(0,0,0);

} </style> </head>