How to create a Portfolio Gallery using HTML and CSS ? (original) (raw)

Last Updated : 29 Jul, 2024

The portfolio gallery is useful when your website contains different types of content or so much content. With the help of a portfolio gallery, you can easily display all the content on your front page to the user.

To create a portfolio gallery we will need only HTML and CSS. We can use JavaScript also but in this article, limits are set so we will use HTML and CSS only. Divide the whole article into two different sections in the 1st section, we will create the structure for the portfolio gallery, and in the second section, we will make sure the gallery looks attractive.

Preview:

Screenshot-at-2024-07-27-13-30-27

Approach:

Create a Portfolio Gallery using HTML and CSS
<meta name="viewport" 
      content="width=device-width, initial-scale=1">

GeeksforGeeks

    <h3>A Computer Science Portal for Geeks</h3>
    <hr>

    <!-- Content of the body-->
    <h2>Portfolio</h2>
    <div class="row">
        <div class="column">
            <div class="content">
                <img src=

"https://www.geeksforgeeks.org/wp-content/uploads/html.png" alt="" style="width:100%">

HTML Tutorials

HTML stands for Hyper Text Markup Language. It is used to design web pages using markup language. HTML is the combination of Hypertext and Markup language. Hypertext defines the link between the web pages.

        <div class="column">
            <div class="content">
                <img src=

"https://www.geeksforgeeks.org/wp-content/uploads/CSS.png" alt="" style="width:100%">

CSS Tutorials

Cascading Style Sheets, fondly referred to as CSS, is a simply designed language intended to simplify the process of making web pages presentable. CSS allows you to apply styles to web pages.

        <div class="column">
            <div class="content">
                <img src="https://www.geeksforgeeks.org/wp-content/uploads/php-1.png" alt="" style="width:100%">
                <h3>
                    <a href="#">PHP Tutorials</a>
                </h3>

                <p>
                    The term PHP is an acronym for PHP:
                    Hypertext Preprocessor. PHP is a
                    server-side scripting language
                    designed specifically for web
                    development. PHP can be easily
                    embedded in HTML files.
                </p>
            </div>
        </div>

        <div class="column">
            <div class="content">
                <img src=

"https://www.geeksforgeeks.org/wp-content/uploads/javascript.png" alt="" style="width:100%">

JavaScript Tutorials

Javascript was developed by Brendan Eich in 1995. At first, it was called LiveScript but was later name to JavaScript. JavaScript is the muscle of the structure

    </div>
</div>

`

**Output: