Can anyone assist me quickly? I've implemented everything but am facing a slight issue with the centering of my ul code. I've tried various solutions without success. Here is my code, any advice would be greatly appreciated (I may sound stressed for my client).
<body>
<header>
<h2><center><img src="img/hdr-horsd.jpg" style="width: 50%"></center></h2><br><br>
</header>
<ul id="light-gallery" class="gallery">
<li data-src="gallery/horsd-01.jpg">
<a href="#">
<img src="gallery/t-horsd-01.jpg" />
</a>
</li>
<li data-src="gallery/horsd-02.jpg" >
<a href="#">
<img src="gallery/t-horsd-02.jpg" />
</a>
</li>
<li data-src="gallery/horsd-03.jpg">
<a href="#">
<img src="gallery/t-horsd-03.jpg" />
</a>
</li>
<li data-src="gallery/horsd-04.jpg" >
<a href="#">
<img src="gallery/t-horsd-04.jpg" />
</a>
</li>
<li data-src="gallery/horsd-05.jpg" >
<a href="#">
<img src="gallery/t-horsd-05.jpg" />
</a>
</li>
<li data-src="gallery/horsd-06.jpg" >
<a href="#">
<img src="gallery/t-horsd-06.jpg" />
</a>
</li>
<li data-src="gallery/horsd-07.jpg" >
<a href="#">
<img src="gallery/t-horsd-07.jpg" />
</a>
</li>
<li data-src="gallery/horsd-08.jpg" >
<a href="#">
<img src="gallery/t-horsd-08.jpg" />
</a>
</li>
<li data-src="gallery/horsd-09.jpg" >
<a href="#">
<img src="gallery/t-horsd-09.jpg" />
</a>
</li>
</ul>
</body>
Below is the custom CSS on the page:
<!-- == Custom CSS Coding == -->
<style>
ul{
list-style: none outside none;
padding-left: 0;
}
.gallery li {
display: block;
float: left;
height: 100px;
margin-bottom: 6px;
margin-right: 6px;
width: 100px;
}
.gallery li a {
height: 100px;
width: 100px;
}
.gallery li a img {
max-width: 100px;
}
</style>
I have removed the centering code as it wasn't working and wanted to keep the code clean. The photo gallery I'm using is jQuery lightGallery.