2011-08-06 158 views
0

我想将“分页”区域移动到滑块图像上方。CSS - 重新定位元素

这是否容易实现?

目前他们是滑块以下图片:http://slidesjs.com/examples/standard/

我该怎么办呢?

这里是所使用的CSS代码:

/* 
    Slideshow 
*/ 

#slides { 
    position:absolute; 
    top:15px; 
    left:4px; 
    z-index:100; 
} 

/* 
    Slides container 
    Important: 
    Set the width of your slides container 
    Set to display none, prevents content flash 
*/ 

.slides_container { 
    width:570px; 
    height:270px; 
    overflow:hidden; 
    position:relative; 
    display:none; 
} 

/* 
    Each slide 
    Important: 
    Set the width of your slides 
    If height not specified height will be set by the slide content 
    Set to display block 
*/ 

.slides_container a { 
    width:570px; 
    height:270px; 
    display:block; 
} 

/* 
    Next/prev buttons 
*/ 

#slides .next,#slides .prev { 
    position:absolute; 
    top:107px; 
    left:-39px; 
    width:24px; 
    height:43px; 
    display:block; 
    z-index:101; 
} 

#slides .next { 
    left:585px; 
} 

/* 
    Pagination 
*/ 

.pagination { 
    margin:26px auto 0; 
    width:100px; 
} 

.pagination li { 
    float:left; 
    margin:0 1px; 
    list-style:none; 
} 

.pagination li a { 
    display:block; 
    width:12px; 
    height:0; 
    padding-top:12px; 
    background-image:url(../img/pagination.png); 
    background-position:0 0; 
    float:left; 
    overflow:hidden; 
} 

.pagination li.current a { 
    background-position:0 -12px; 
} 

非常感谢任何指针。

回答

2

添加这个CSS类它将为你工​​作

.pagination 
{ 
    position:relative; 
    top:-332px; 
} 
+0

哇!就这样,我们很高兴:D非常感谢主席! – michaelmcgurk

+0

再次感谢Shankar。很酷。祝你有美好的一天/周末:) – michaelmcgurk