[go: up one dir, main page]

0% found this document useful (0 votes)
48 views8 pages

Cs420 Assignment Solution

The document provides the solution for CS420 Assignment 1 due on May 2, 2025, which requires submission of an HTML file. It includes a responsive web page code utilizing Flexbox for layout, along with instructions for submission and a warning against copying solutions. Additional resources and contact information for further assistance are also provided.

Uploaded by

sevdaism789
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
48 views8 pages

Cs420 Assignment Solution

The document provides the solution for CS420 Assignment 1 due on May 2, 2025, which requires submission of an HTML file. It includes a responsive web page code utilizing Flexbox for layout, along with instructions for submission and a warning against copying solutions. Additional resources and contact information for further assistance are also provided.

Uploaded by

sevdaism789
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 8

MORE SOLUTIONS, HANDOUTS AND PAST PAPERS FREELY VISIT

VUAnswer.pk

CS420 ASSIGNMENT 1 SOLUTION SPRING 2025

Due Date: 2-May-2025


Total Marks: 20

Join Group for Free [Assignments, GDBs, Quizzes] Solution Files


https://chat.whatsapp.com/Bto6NP8Af6h1Sz3Z2O7dUK

DO NOT COPY PASTE THE SAME

FOR PAID SOLUTION CONTACT WHATSAPP


03162965677

Assignment Submission Instruction:


1) You have to just upload .html file which will have the code of HTML. Assignment in any
other format (extension) will not be accepted and will be awarded with zero marks.
2) In case of any issue, if the system does not accept .html file then zip your.html file in a
zip folder and upload it on LMS.

SOLUTION
CODE

FOR MORE ASSIGNMENTS CORRECT SOLUTION

WhatsApp: +923162965677
MORE SOLUTIONS, HANDOUTS AND PAST PAPERS FREELY VISIT

VUAnswer.pk

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>BC123456789 - Responsive Page</title>
<style>
/* Mobile-first styles */
*{ margin: 0;
padding: 0; box-sizing:
border-box;
}

body {
font-family: Arial, sans-serif;
line-height: 1.6; color: #333;
}

header {
background-color: #2c3e50;

FOR MORE ASSIGNMENTS CORRECT SOLUTION

WhatsApp: +923162965677
MORE SOLUTIONS, HANDOUTS AND PAST PAPERS FREELY VISIT

VUAnswer.pk

color: white;
padding: 1em; text-
align: center;
}

nav { display:
flex; justify-content:
center; gap: 1em;
margin-top: 1em;
}

nav a { color:
white; text-
decoration: none;
padding: 0.5em;
}

.main-content
{ padding: 2em 1em;
}

.content-wrapper { display: flex; flex-direction: column; gap: 2em;


}

FOR MORE ASSIGNMENTS CORRECT SOLUTION

WhatsApp: +923162965677
MORE SOLUTIONS, HANDOUTS AND PAST PAPERS FREELY VISIT

VUAnswer.pk

.text-content
{ font-size: 1em;
}

.image-content img {
width: 100%; height:
auto; border-radius:
8px;
}

footer { background-
color: #2c3e50; color:
white; text-align: center;
padding: 1em; margin-top:
1em;
}

/* Media Queries */
@media screen and (min-width: 600px) {
.content-wrapper
{ flex-direction: row;
}

FOR MORE ASSIGNMENTS CORRECT SOLUTION

WhatsApp: +923162965677
MORE SOLUTIONS, HANDOUTS AND PAST PAPERS FREELY VISIT

VUAnswer.pk

.text-content {
flex: 1; font-
size: 1.1em;
}

.image-content {
flex: 1;
}
nav a {
padding: 0.5em 1em;
}
}

@media screen and (min-width: 900px) {


.text-content {
font-size: 1.2em; }

}
</style>
</head>
<body>
<header>

FOR MORE ASSIGNMENTS CORRECT SOLUTION

WhatsApp: +923162965677
MORE SOLUTIONS, HANDOUTS AND PAST PAPERS FREELY VISIT

VUAnswer.pk

<h1>BC123456789 - John Doe</h1>


<nav>
<a href="#">Home</a>
<a href="#">About</a>
<a href="#">Contact</a>
</nav>
</header>

<main class="main-content">
<div class="content-wrapper">
<div class="text-content">
<h2>About This Page</h2>
<p>This is a responsive web page designed to adapt to different screen sizes. The
layout uses Flexbox to create a fluid design that works well on both mobile devices and desktop
computers. The text you're reading now is in the main content section, which is paired with an
image in the adjacent column on larger screens.</p>
<p>On mobile devices, these elements stack vertically for better readability. The font
size adjusts automatically based on the screen width, and all measurements use relative units like
em and percentages to ensure proper scaling. The navigation menu is simple and accessible, with
clear links to different sections of the website.</p>
<p>This implementation follows mobile-first design principles, with basic styles for
small screens that are enhanced with media queries for larger displays. The page doesn't use any
frameworks or advanced layout techniques, relying instead on pure HTML and CSS with
Flexbox for the responsive layout.</p>
</div>

FOR MORE ASSIGNMENTS CORRECT SOLUTION

WhatsApp: +923162965677
MORE SOLUTIONS, HANDOUTS AND PAST PAPERS FREELY VISIT

VUAnswer.pk

<div class="image-content">
<img src="https://via.placeholder.com/600x400" alt="Sample responsive design
image">
</div>
</div>
</main>

<footer>
<p>© 2025 BC123456789</p>
</footer>
</body>
</html>

REGARD - SARIM
WHATSAPP +923162965677

PLEASE NOTE:
Don't copy-paste the same answer.

FOR MORE ASSIGNMENTS CORRECT SOLUTION

WhatsApp: +923162965677
MORE SOLUTIONS, HANDOUTS AND PAST PAPERS FREELY VISIT

VUAnswer.pk

Make sure you can make some changes to your solution file before
submitting copy paste solution will be marked zero.
If you found any mistake then correct yourself and inform me.
Before submitting an assignment must check your assignment requirement
file.
If you need some help or question about file and solutions feel free to ask.

FOR FREE ASSIGNMENTS SOLUTIONS VISIT

VUAnswer.pk

FOR MORE ASSIGNMENTS CORRECT SOLUTION

WhatsApp: +923162965677

You might also like