I am having trouble creating a carousel to display images in a horizontal row using an unordered list. The issue I'm facing is that the list items are not aligning inline as expected. The problem lies in the images within the unordered list not appearing horizontally on the screen. Below you can find the HTML and CSS code that I have used:
* {
box-sizing: border-box;
}
section.hero {
margin: 0;
padding: 24px;
color: #3f3f3f;
width: 100%;
height: 93vh;
background-color: #F9CDAD;
text-align: center;
}
.left {
float: left;
width: 2%;
height: 75%;
padding-top: 15%;
}
.hero_images {
height: 85%;
width: 96%;
float: left;
position: relative;
}
#landmark {
position: absolute;
left: 0;
top: 0;
width: 100%;
height: 100%;
}
#landmark ul {
list-style-type: none;
height: 100%;
}
#landmark ul li {
display: inline;
width: 100%;
height: 100%;
}
.clear-left {
clear: left;
}
.left a { text-decoration: none; color: #3f3f3f; }
<section class="hero">
<div class="left"><a href="#"><h1 id="left"><</h1></a></div>
<div class="hero_images">
<div id="landmark">
<ul>
<li><img src="https://buildingontheword.org/wp-content/uploads/2016/08/cat.jpg" /></li>
<li><img src="https://media.istockphoto.com/photos/small-orange-kitten-lie-on-the-bed-picture-id465257035?k=6&m=465257035&s=612x612&w=0&h=ao7AXh-3zDStrPYWZFbbp5kI-wpW8M1y2BHwYcXjvuA=" /></li>
</ul>
</div>
</div>
<div class="left"><a href="#"><h1 id="right">></h1></a></div>
<h2 id="pos" class="clear-left">Hello</h2>
</section>