Quantcast
Channel: Joomla! Forum - community, help and support
Viewing all articles
Browse latest Browse all 1575

General Questions/New to Joomla! 5.x • Re: How to list all articles in 3 columns and only with the intro image?

$
0
0
To display articles in 3-4 columns with clickable intro images, use CSS grid or flexbox for the layout. Wrap each image in an anchor tag to make it clickable, leading to the full article. Hide the "Home" text using CSS. Here's a quick example: pentagondetailing.com

Code:

<!DOCTYPE html><html lang="en"><head>    <meta charset="UTF-8">    <meta name="viewport" content="width=device-width, initial-scale=1.0">    <style>        .article-grid {            display: grid;            grid-template-columns: repeat(3, 1fr);            gap: 20px;        }        .article img {            width: 100%;            height: auto;        }        .home-text {            display: none;        }    </style></head><body>    <div class="article-grid">        <div class="article">            <a href="link-to-article-1.html">                <img src="intro-image-1.jpg" alt="Article 1">            </a>        </div>    </div></body></html>
This setup will create a grid of intro images that are clickable, leading to their respective articles, and hide the "Home" text.

Statistics: Posted by arnoldtailor — Sat Jun 15, 2024 4:50 am



Viewing all articles
Browse latest Browse all 1575

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>