SHOW:
|
|
- or go back to the newest paste.
| 1 | #slider {
| |
| 2 | width:940px; | |
| 3 | height:400px; | |
| 4 | display: block; | |
| 5 | clear: left; | |
| 6 | position: absolute; | |
| 7 | top: 0px; | |
| 8 | left: 50%; | |
| 9 | - | margin-left: -960px; /* change it with -(width_image_dimension/2). if your image is 1000px wide, change it with -500px. If the image is 940px wide, change it with -(940/2) = -470px */ |
| 9 | + | margin-left: -960px; /* change it with -(width_image_dimension/2). If the image is 940px wide, change it with -(940/2) = -470px */ |
| 10 | } |