How do I display my li
elements horizontally? I want each li
element to contain an image with text overlay, but currently they are displaying vertically despite my attempts.
Below is the code snippet from my home.page.scss file:
ul {
width: 100% !important;
list-style-type: none !important;
margin: auto !important;
overflow-x: auto !important;
white-space: nowrap !important;
}
li{
display: inline !important;
}
.deyDiv{
position: relative;
margin-top:5px;
margin-bottom:5px;
padding-right:2px;
}
.text{
position: absolute;
bottom: 8px;
left: 16px;
}
.iuyE{
border-radius:10px;
}
.news{
width:60%;
height:45%;
}
And here's a snippet from the home.page.html file:
<ul >
<li *ngFor="let video of discovrys">
<div class="deyDiv news">
<img class="iuyE" [src]="image">
<h6 class="text">The title of the nese</h6>
</div>
</li>
</ul>
I can't figure out what mistake I'm making. Any suggestions?