how do i remove li { list-style: none } at the for the contents of <?php echo…
- User
how do i remove li { list-style: none } at the for the contents of in : <?php include("../conn.php"); _GET['id'];
?>
<a href="#" class="logo"> <img src="/images/icon/logo2.png" width="150" height="49" alt="NUXLES logo"> </a> <nav class="navbar" data-navbar> <div class="navbar-top"> <a href="#" class="logo"> <img src="/images/icon/logo2.png" width="150" height="49" alt="NUXLES logo"> </a> <button class="nav-close-btn" aria-label="close menu" data-nav-toggler> <ion-icon name="close-outline" aria-hidden="true"></ion-icon> </button> </div> <ul class="navbar-list"> <li> <a href="index.php" class="navbar-link hover-1" data-nav-toggler>Home</a> </li> <li> <a href="index.php#categories" class="navbar-link hover-1" data-nav-toggler>Categories</a> </li> <li> <a href="index.php#featured" class="navbar-link hover-1" data-nav-toggler>Featured Post</a> </li> <li> <a href="index.php#recent" class="navbar-link hover-1" data-nav-toggler>Recent Post</a> </li> <li> <a href="/index.php#contactus_section" class="navbar-link hover-1" data-nav-toggler>Contact</a> </li> </ul> <p class="copyright-text"> Copyright 2023 © NUXLES - Educational Blog </p> </nav> <a href="https://nuxles.com/" class="btn btn-primary">Nuxles School</a> <button class="nav-open-btn" aria-label="open menu" data-nav-toggler> <ion-icon name="menu-outline" aria-hidden="true"></ion-icon> </button> </div>.card-title { color: #ff2e97 !important; font-weight: 800; } .card-subtitle { color: #00acbe !important; font-weight: 600; } a { display: inline-block !important; } </style> <!-- - #HERO --> <section class="section recent-post" id="recent" aria-labelledby="recent-label"> <div class="container"> <div class="post-main"> <?php $selBlog = $conn->query("SELECT * FROM blogs WHERE id='$Id' "); while ($selBlogRow = $selBlog->fetch(PDO::FETCH_ASSOC)) { ?> <img src="<?php echo $selBlogRow['thumbnail']; ?>" alt="post_image" class="img-fluid"> <h2 class="headline headline-3 section-title"> <span class="span"><?php echo $selBlogRow['title']; ?></span> </h2> <div class="profile-card"> <img src="<?php echo $selBlogRow['author_image']; ?>" width="48" height="48" loading="lazy" alt="<?php echo $selBlogRow['author_image']; ?>" class="profile-banner"> <div> <p class="card-title"><?php echo $selBlogRow['author']; ?></p> <p class="card-subtitle"><?php echo $selBlogRow['publish_date']; ?></p> </div> </div> <p class="hero-text"> <?php echo $selBlogRow['content']; ?> </p> </div> <?php } ?> <div class="post-aside grid-lists"> <div class="card aside-card"> <h3 class="headline headline-2 aside-title"> <span class="span">Popular Posts</span> </h3> <ul class="popular-list"> <?php $selPopularPost = $conn->query("SELECT * FROM blogs WHERE editors=1 "); while ($selPopularPostRow= $selPopularPost->fetch(PDO::FETCH_ASSOC)) { ?> <li> <div class="popular-card"> <figure class="card-banner img-holder" style="--width: 64; --height: 64;"> <img src="<?php echo $selPopularPostRow['thumbnail']; ?>" width="64" height="64" loading="lazy" alt="<?php echo $selPopularPostRow['title']; ?>" class="img-cover"> </figure> <div class="card-content"> <h4 class="headline headline-4 card-title"> <a href="blog.php?id=<?php echo $selPopularPostRow['id']; ?>" class="link hover-2"><?php echo $selPopularPostRow['title']; ?></a> </h4> <div class="warpper"> <p class="card-subtitle"><?php echo $selPopularPostRow['duration']; ?> min read</p> <time class="publish-date"><?php echo $selPopularPostRow['publish_date']; ?></time> </div> </div> </div> </li> <?php } ?> </ul> </div> <div class="card aside-card insta-card"> <a href="#" class="logo"> <img src="/images/icon/logo2.png" width="150" height="49" loading="lazy" alt="NUXLES logo"> </a> <p class="card-text"> Join the conversation on facebook </p> <ul class="insta-list"> <li> <a href="https://m.facebook.com/groups/704989174718376/" class="insta-post img-holder" style="--width: 276; --height: 277;"> <img src="./assets/images/insta-post-1.png" width="276" height="277" loading="lazy" alt="insta post" class="img-cover"> </a> </li> <li> <a href="https://m.facebook.com/groups/704989174718376/" class="insta-post img-holder" style="--width: 276; --height: 277;"> <img src="./assets/images/insta-post-2.png" width="276" height="277" loading="lazy" alt="insta post" class="img-cover"> </a> </li> <li> <a href="https://m.facebook.com/groups/704989174718376/" class="insta-post img-holder" style="--width: 276; --height: 277;"> <img src="./assets/images/insta-post-3.png" width="276" height="277" loading="lazy" alt="insta post" class="img-cover"> </a> </li> <li> <a href="https://m.facebook.com/groups/704989174718376/" class="insta-post img-holder" style="--width: 276; --height: 277;"> <img src="./assets/images/insta-post-4.png" width="276" height="277" loading="lazy" alt="insta post" class="img-cover"> </a> </li> <li> <a href="https://m.facebook.com/groups/704989174718376/" class="insta-post img-holder" style="--width: 276; --height: 277;"> <img src="./assets/images/insta-post-5.png" width="276" height="277" loading="lazy" alt="insta post" class="img-cover"> </a> </li> <li> <a href="https://m.facebook.com/groups/704989174718376/" class="insta-post img-holder" style="--width: 276; --height: 277;"> <img src="./assets/images/insta-post-6.png" width="276" height="277" loading="lazy" alt="insta post" class="img-cover"> </a> </li> <li> <a href="https://m.facebook.com/groups/704989174718376/" class="insta-post img-holder" style="--width: 276; --height: 277;"> <img src="./assets/images/insta-post-7.png" width="276" height="277" loading="lazy" alt="insta post" class="img-cover"> </a> </li> <li> <a href="https://m.facebook.com/groups/704989174718376/" class="insta-post img-holder" style="--width: 276; --height: 277;"> <img src="./assets/images/insta-post-8.png" width="276" height="277" loading="lazy" alt="insta post" class="img-cover"> </a> </li> <li> <a href="https://m.facebook.com/groups/704989174718376/" class="insta-post img-holder" style="--width: 276; --height: 277;"> <img src="./assets/images/insta-post-9.png" width="276" height="277" loading="lazy" alt="insta post" class="img-cover"> </a> </li> </ul> </div> </div> </div> </section> <section class="section recent-post" id="recent" aria-labelledby="recent-label"> <div class="container"> <div class="post-aside grid-list"> <div class="card aside-card" id="disqus_thread"> <script> /** * RECOMMENDED CONFIGURATION VARIABLES: EDIT AND UNCOMMENT THE SECTION BELOW TO INSERT DYNAMIC VALUES FROM YOUR PLATFORM OR CMS. * LEARN WHY DEFINING THESE VARIABLES IS IMPORTANT: https://disqus.com/admin/universalcode/#configuration-variables */ /* var disqus_config = function () { this.page.url = PAGE_URL; // Replace PAGE_URL with your page's canonical URL variable this.page.identifier = PAGE_IDENTIFIER; // Replace PAGE_IDENTIFIER with your page's unique identifier variable }; */ (function() { // DON'T EDIT BELOW THIS LINE var d = document, s = d.createElement('script'); s.src = 'https://vycta-com.disqus.com/embed.js'; s.setAttribute('data-timestamp', +new Date()); (d.head || d.body).appendChild(s); })(); </script> <noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript> </div> <div class="card aside-card"> <h3 class="headline headline-2 aside-title"> <span class="span">Recent Posts</span> </h3> <ul class="popular-list"> <?php $selRecentPost = $conn->query("SELECT * FROM blogs ORDER BY id DESC "); while ($selRecentPostRow = $selRecentPost->fetch(PDO::FETCH_ASSOC)) { ?> <li> <div class="popular-card"> <figure class="card-banner img-holder" style="--width: 64; --height: 64;"> <img src="<?php echo $selRecentPostRow['thumbnail']; ?>" width="64" height="64" loading="lazy" alt="<?php echo $selRecentPostRow['title']; ?>" class="img-cover"> </figure> <div class="card-content"> <h4 class="headline headline-4 card-title"> <a href="blog.php?id=<?php echo $selRecentPostRow['id']; ?>" class="link hover-2"><?php echo $selRecentPostRow['title']; ?></a> </h4> <div class="warpper"> <p class="card-subtitle"><?php echo $selRecentPostRow['duration']; ?> min read</p> <time class="publish-date"><?php echo $selRecentPostRow['publish_date']; ?></time> </div> </div> </div> </li> <?php } ?> </ul> </div> </div> </div> </section> </article> - Assistant
To ensure that list items within the content of your PHP echo statement () do not have applied to them, you can do several things. A couple of approaches are listed below: