ToMotion AI logo
Menu
Back to gallery

Public AI explainer video

Responsive Portfolio Projects Section (HTML + CSS)

Here’s a responsive portfolio Projects section built from simple HTML and CSS. In the HTML, a section with the class “projects” holds a centered...

Prompt

Source idea used to generate this video.

1. HTML Code (from Image 2) HTML <section id="projects" class="projects"> <h2>મારા પ્રોજેક્ટ્સ</h2> <div class="project-grid"> <div class="project-card"> <img src="project1.jpg" alt="Project 1"> <h3>પ્રોજેક્ટ 1 નું નામ</h3> <p>આ પ્રોજેક્ટ HTML અને CSS નો ઉપયોગ કરીને બનાવવામાં આવ્યો છે.</p> <a href="#" class="btn">જુઓ</a> </div> <div class="project-card"> <img src="project2.jpg" alt="Project 2"> <h3>પ્રોજેક્ટ 2 નું નામ</h3> <p>રિસ્પોન્સિવ વેબસાઇટ ડિઝાઇન જે મોબાઇલ અને ડેસ્કટોપ બંને પર કામ કરે છે.</p> <a href="#" class="btn">જુઓ</a> </div> <div class="project-card"> <img src="project3.jpg" alt="Project 3"> <h3>પ્રોજેક્ટ 3 નું નામ</h3> <p>JavaScript સાથે ઇન્ટરેક્ટિવ વેબ એપ્લિકેશન.</p> <a href="#" class="btn">જુઓ</a> </div> </div> </section> 2. CSS Code (from Image 1) CSS /* Projects Section */ .projects { padding: 80px 50px; background-color: white; } .projects h2 { text-align: center; margin-bottom: 40px; color: #041938; } .project-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; } .project-card { background: #f4f4f4; padding: 20px; border-radius: 10px; text-align: center; } .project-card img { width: 100%; border-radius: 8px; margin-bottom: 15px; }

Narration

Narration used to create this video.

Video narration

Here’s a responsive portfolio Projects section built from simple HTML and CSS. In the HTML, a section with the class “projects” holds a centered heading in Gujarati: “મારા પ્રોજેક્ટ્સ”. Under that, a div called “project-grid” contains three “project-card” blocks. Each card follows the same pattern: an image, an h3 title, a Gujarati description paragraph, and a “View” link. Now the CSS ties it together. The .projects rule adds padding for breathing room and a light background color. The heading is centered for a clean section title. The real layout comes from .project-grid: display grid, a gap between items, and grid-template-columns using auto-fit and minmax, so cards wrap neatly as the screen gets narrower. Finally, the card styling: each .project-card has a light gray background, border-radius for rounded corners, and centered text. The image is width 100%, with its own border-radius and a bottom margin, so it fills the card and stays nicely spaced.