Hello everyone!
Im having a little trouble with my horizontal scrolling set of video thumbnails.
I've got 6 video thumbnails that the user scrolls through horizontally, I've got this working fine with the images. However, I want a small peice of text underneath each image - the title of the video.
But i can't get the text to display below the image without messing up the horizontal scrolling!
Here's an online example:
Here's the code:
Your help would be much appreaciated!
Thanks in advance
-Ryan
Im having a little trouble with my horizontal scrolling set of video thumbnails.
I've got 6 video thumbnails that the user scrolls through horizontally, I've got this working fine with the images. However, I want a small peice of text underneath each image - the title of the video.
But i can't get the text to display below the image without messing up the horizontal scrolling!
Here's an online example:
Here's the code:
Code:
<style>
.photo-list {
margin: 0;
padding: 0;
height: 130px;
width: 558px;
list-style: none;
overflow: auto;
white-space:nowrap;
}
.photo-list li {
display: inline;
}
.photo-list p {
display: inline;
}
.photo-list img {
height: 82px;
width: 108px;
border: 0;
}
</style>
</head>
<body>
<ul class="photo-list">
<li><img src="images/vid_thumb.jpg" alt=""><p>video 1</p></li>
<li><img src="images/vid_thumb.jpg" alt=""><p>video 2</p></li>
<li><img src="images/vid_thumb.jpg" alt=""><p>video 3</p></li>
<li><img src="images/vid_thumb.jpg" alt=""><p>video 4</p></li>
<li><img src="images/vid_thumb.jpg" alt=""><p>video 5</p></li>
<li><img src="images/vid_thumb.jpg" alt=""><p>video 6</p></li>
</ul>
Thanks in advance
-Ryan
Comment