For my website, I am working on creating a table using the list method along with CSS. However, I encountered a problem where the table is not displaying correctly when Bootstrap CDN is applied. Removing Bootstrap CDN resolves the issue, but I need to keep Bootstrap for other sections of the website.
View with Bootstrap 4 (BS4) screenshot1
View without Bootstrap 4 screenshot2
.wrapper-usd {
width: 100%;
max-width: 1000px;
margin: 20px auto 100px auto;
padding: 0;
background: rgba(255, 255, 255, 0.1);
color: rgba(255, 255, 255, 0.9);
overflow: hidden;
position: relative;
}
/* lists */
.row-usd ul {
margin: 0;
padding: 0;
}
.row-usd ul li {
margin: 0;
font-size: 16px;
font-weight: normal;
list-style: none;
display: inline-block;
width: 20%;
box-sizing: border-box;
}
@media only screen and (max-width: 767px) and (min-width: 480px) {
.row-usd ul li {
font-size: 13px;
}
}
@media only screen and (max-width: 479px) {
.row-usd ul li {
font-size: 13px;
}
}
.title-usd ul li {
padding: 15px 13px;
}
.row-usd ul li {
padding: 5px 10px;
}
/* rows */
.row-usd {
padding: 20px 0;
height: 30px;
font-size: 0;
position: relative;
overflow: hidden;
transition: all 0.2s ease-out;
border-top: 1px solid rgba(0, 0, 0, 0.1);
}
.title-usd {
padding: 25px 0 5px 0;
height: 45px;
font-size: 0;
background-color: rgba(255, 255, 255, 0.1);
border-left: 3px solid rgba(255, 255, 255, 0.1);
}
<section class="wrapper-usd">
<main class="row-usd title-usd">
<ul>
<li>Name</li>
<li>Amount</li>
<li>Count</li>
<li>Max</li>
<li>Time</li>
</ul>
</main>
<article class="row-usd">
<ul>
<li>Harikumar jyadev</li>
<li>$50</li>
<li>12</li>
<li>48</li>
<li>2:00ET</li>
</ul>
</article>
<article class="row-usd">
<ul>
<li>Harikumar jyadev</li>
<li>$50</li>
<li>12</li>
<li>48</li>
<li>2:00ET</li>
</ul>
</article>
</section>