Recently, I've been working on a website called . On the homepage, my portfolio images are arranged in a grid format using the <li>
tag. I'm looking to align them side by side and have them scroll horizontally automatically, preferably with JavaScript or jQuery (no other libraries, please). It's also okay if there is a scrollbar present. Here is what I attempted so far:
.portfolio li {
width: 438px !important;
display:inline !important;
}
followed by
<ul id="thumbs" style="width:100%;list-style:none;display:block;white-space:nowrap;">
<li class="portfolio" style="width: 438px; opacity: 1;display:inline;">
<a href="BLAHBLAH" title="BLAHBLAH">
<img src="BLAHBLAH" alt="" title="" >
</a>
</li>
Although this code snippet is simplified from the actual page content, testing it out didn't yield the desired results. Any suggestions on how to make this layout work?