1 like 0 dislike
235 views

1 Answer

0 like 0 dislike
by (571 points)

Hello, friends. 

Today I am going to show you how to make a download page using html and css. 

At first make a folder named Files and a html file named download.html.

Then just copy this html code and paste into download.html file and save.

Afer that, the folder we made and the html file we will upload into hosting server ( in web directory). 

Then we will make a link for homepage in index.html file. 

And thus we will be able to make a download page for our website. 

Note: The file we want to make downloadable, we will keep in Files folder and put its link in download.html file. 

Code for download.html file

<!DOCTYPE html>

<html lang="en">

<head>

    <meta charset="UTF-8">

    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <title>File Downloader</title>

    <style>

        body {

            font-family: Arial, sans-serif;

            background-color: #f4f4f9;

            margin: 0;

            padding: 0;

            display: flex;

            justify-content: center;

            align-items: top;

            height: 100vh;

        }

        .container {

            width: 80%;

            text-align: center;

            padding: 20px;

            background-color: #fff;

            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);

            border-radius: 10px;

        }

        h1 {

            color: #333;

        }

        .file-list {

            margin-top: 20px;

        }

        .file-list a {

            display: block;

            margin: 10px 0;

            padding: 10px;

            text-decoration: none;

            background-color: #4CAF50;

            color: white;

            border-radius: 5px;

            transition: background-color 0.3s;

        }

        .file-list a:hover {

            background-color: #45a049;

        }

        .file-list a:active {

            background-color: #3e8e41;

        }

    </style>

</head>

<body>

    <div class="container">

        <h1>Download Files</h1>

        <div class="file-list">

            <a href="Files/CL_App.docx" download>নৈমিত্তিক ছুটির আবেদন</a>

            <a href="Files/LearningReport.docx" download>শিখন অগ্রগতি রিপোর্ট</a>

            <a href="Files/LessonChalk.docx" download>পাঠদান সম্পর্কিত</a>

        </div>

    </div>

</body>

</html>

by (571 points)

Code for 2 column page 

<!DOCTYPE html>

<html lang="en">

<head>

<meta charset="UTF-8">

<title>File Downloader</title>

<style>

        body {

            font-family: Arial, sans-serif;

            background-color: #f4f4f9;

            margin: 0;

            padding: 0;

            display: absolute;

            justify-content: center;

            align-items: center;

            height: 100vh;

        }

        .container {

width: 45%;

            text-align: center;

float: left;

            padding: 10px;

            background-color: #fff;

            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);

            border-radius: 10px;

        }

.container2 {

width: 45%;

            text-align: center;

float: right;

            padding: 10px;

            background-color: #fff;

            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);

            border-radius: 10px;

        }

        h1 {

            color: #0000ff;

        }

        .file-list {

            margin-top: 20px;

        }

        .file-list a {

            display: block;

            margin: 10px 0;

            padding: 10px;

            text-decoration: none;

            background-color: #4CAF50;

            color: white;

            border-radius: 5px;

            transition: background-color 0.3s;

        }

        .file-list a:hover {

            background-color: #45a049;

        }

        .file-list a:active {

            background-color: #3e8e41;

        }

    </style>

</head>

<body>

<div class="container">

<h1>File Download</h1>

<div class="file-list">

<a href="Files/CL_App.docx" download>নৈমিত্তিক ছুটির আবেদন</a>

<a href="Files/LearningReport.docx" download>শিখন অগ্রগতি রিপোর্ট</a>

<a href="Files/LessonChalk.docx" download>পাঠ পর্যবেক্ষন ছক</a>

<a href="Files/LessonChalk.docx" download>বেসলাইন সার্ভে</a>

<a href="Files/LessonChalk.docx" download>হোম ভিজিট ফরম</a>

<a href="Files/LessonChalk.docx" download>হোম ভিজিট তথ্য ছক</a>

<a href="Files/LessonChalk.docx" download>মাসিক রিটার্ন</a>

<a href="Files/LessonChalk.docx" download>স্লিপ পরিকল্পনা</a>

<a href="Files/LessonChalk.docx" download>এপিএ/২৪-২৫</a>

<a href="Files/LessonChalk.docx" download>শিক্ষার্থী উপস্থিতি রিপোর্ট</a>

<a href="Files/LessonChalk.docx" download>স্বাস্থ্য পরিক্ষা ফরম</a>

<a href="Files/LessonChalk.docx" download>প্রাথমিক শিক্ষা পদক আবেদন</a>

<a href="Files/LessonChalk.docx" download>প্রাথমিক শিক্ষা পদক ফরম (সশি)</a>

<a href="Files/LessonChalk.docx" download>প্রাথমিক শিক্ষা পদক ফরম (প্রশি)</a>

<a href="Files/LessonChalk.docx" download>প্রাথমিক শিক্ষা পদক নীতিমালা</a>

<a href="Files/LessonChalk.docx" download>সম্পদের হিসাব বিবরণী ফরম</a>

</div>

</div>

<div class="container2">

<h1>Software Download</h1>

<div class="file-list">

<a href="Files/CL_App.docx" download>Web Template blank</a>

<a href="Files/LearningReport.docx" download>Kompozer</a>

<a href="Files/LessonChalk.docx" download>Notpad ++</a>

<a href="Files/LessonChalk.docx" download>MS Office 10</a>

<a href="Files/LessonChalk.docx" download>MS Office 13</a>

<a href="Files/LessonChalk.docx" download>MS Office 16</a>

<a href="Files/LessonChalk.docx" download>MS Office 19</a>

<a href="Files/LessonChalk.docx" download>Photoshop 7</a>

<a href="Files/LessonChalk.docx" download>LightShot</a>

<a href="Files/LessonChalk.docx" download>Whatsapp</a>

<a href="Files/LessonChalk.docx" download>atube catcher</a>

<a href="Files/LessonChalk.docx" download>Anydesk</a>

<a href="Files/LessonChalk.docx" download>WavePad</a>

<a href="Files/LessonChalk.docx" download>Winrar</a>

<a href="Files/LessonChalk.docx" download>Adobe Reader</a>

<a href="Files/LessonChalk.docx" download>KMS Pico</a>

<a href="Files/LessonChalk.docx" download>Opsis2.9.5</a>

</div>

</div>

</body>

</html>

Related questions

327 questions

98 answers

7 comments

5,034 users

2 Online Users
0 Member 2 Guest
Today Visits : 1642
Yesterday Visits : 951
Total Visits : 7941630
...