NAME:AADITYA PRADEEP CHANDRASEKHAR
REGNO:23MCA0272
FULL STACK WEB DEV ASSIGNMENT:CSS
Q1 HTML CODE
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-
scale=1.0">
<title>Birthday Greeting</title>
<link rel="stylesheet" href="cssQ1.css">
</head>
<body>
<div class="card">
<h1>Happy Birthday, Vivek Macha!</h1>
<p>Wishing you a day filled with joy, laughter, and wonderful
surprises.</p>
</div>
</body>
</html>
CSS CODE
body {
margin: 0;
padding: 0;
height: 100vh;
background:rgba(0, 0, 0, 0.5) url('bday\ card.jpg') center/cover;
display: flex;
justify-content: center;
align-items: center;
text-align: center;
}
.card {
background-color: rgba(255, 255, 255, 0.8);
padding: 20px;
border-radius: 10px;
}
h1 {
color: #333;
}
p {
NAME:AADITYA PRADEEP CHANDRASEKHAR
REGNO:23MCA0272
color: #555;
}
Birthday Card Image
Q2. HTML Code
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-
scale=1.0">
<title>CSS Examples</title>
<link rel="stylesheet" href="cssQ2.css">
</head>
<body>
<p>This is a paragraph with green color text.</p>
<div class="bgrose">TEXT</div>
</body>
</html>
CSS CODE
NAME:AADITYA PRADEEP CHANDRASEKHAR
REGNO:23MCA0272
p {
color: rgb(51, 204, 0);
}
.bgrose {
background: url('rose.jpg') no-repeat;
background-size: cover;
display: inline-block;
font-size: 39px;
color: black;
}
body {
margin: 0;
padding: 0;
height: 100vh;
background: url('pic1.jpg') repeat-x center center;
}
OUTPUT
Q3. HTML CODE
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-
scale=1.0">
<title>CSS Text Styling</title>
NAME:AADITYA PRADEEP CHANDRASEKHAR
REGNO:23MCA0272
<link rel="stylesheet" href="cssQ3.css">
</head>
<body>
<a href="Test.htm" class="custom-text">Cascading Style Sheet</a>
</body>
</html>
CSS CODE
body {
font-family: Arial, sans-serif;
}
.custom-text {
color: darkred;
font-variant: small-caps;
font-size: 4vw;
text-decoration: none;
}
Test.htm file contents
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-
scale=1.0">
<title>Document</title>
</head>
<body>
<h1>Test.htm file has been clicked</h1>
</body>
</html>
HTML file image
NAME:AADITYA PRADEEP CHANDRASEKHAR
REGNO:23MCA0272
Test.htm
Q4 HTML CODE
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-
scale=1.0">
<title>CSS Example</title>
<link rel="stylesheet" href="cssQ4.css">
</head>
<body>
<div class="container">
Now paragraphs can have a border of their own.
</div>
</body>
</html>
Q4 CSS
body {
margin: 0;
padding: 0;
NAME:AADITYA PRADEEP CHANDRASEKHAR
REGNO:23MCA0272
.container {
position: absolute;
top: 100px;
right: 40%;
font-family: "Times New Roman", serif;
font-style: italic;
font-size: 30px;
color: lime;
letter-spacing: 2px;
text-decoration: line-through;
padding: 20px;
border-style: groove;
border-width: 5pt 10px 2cm 1cm;
border-color: CC99CC 99CCCC CCCC99 C9C9C9;
}
OUTPUT
Q5.
HTML CODE
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
NAME:AADITYA PRADEEP CHANDRASEKHAR
REGNO:23MCA0272
<meta name="viewport" content="width=device-width, initial-
scale=1.0">
<title>Image with Border</title>
<link rel="stylesheet" href="cssQ5.css">
</head>
<body>
<img src="pic2.jpg" alt="Your Image Description">
</body>
</html>
CSS CODE
img {
border-top: 3px dashed green;
border-bottom: 3px dashed green;
border-left: 5px solid green;
border-right: 5px solid green;
}
IMAGE:
Q6 PART 1 HTML
<!DOCTYPE html>
NAME:AADITYA PRADEEP CHANDRASEKHAR
REGNO:23MCA0272
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-
scale=1.0">
<title>Document</title>
<link rel="stylesheet" href="Q6_a.css">
</head>
<body>
<div class="table-container">
<div class="row1">
<div id="col1">Column 1</div>
<div id="col2">Column 2</div>
<div id="col3">Column 3</div>
</div>
<div class="row2">
<div id="ol">
<h3>A numbered list:</h3>
<ol>
<li>Able</li>
<li>Baker</li>
<li>Charlie</li>
<li>Delta</li>
<li>Echo</li>
</ol>
</div>
<div class="column2" id="B">B</div>
<div class="column2" id="C">C</div>
<div class="column2" id="ul">
<h3>An unnumbered list:</h3>
<ul>
<li>Pounds</li>
<li>Dollars</li>
<li>Euro</li>
<li>Yen</li>
<li>Roubles</li>
</ul>
</div>
</div>
</div>
</body>
</html>
CSS
NAME:AADITYA PRADEEP CHANDRASEKHAR
REGNO:23MCA0272
.table-container {
width: 605px;
height: 188px;
border: 3px ridge #ccc;
padding: 2px;
}
div div div{
border: 3px ridge #ccc;
.row1{
position: relative;
top:0;
left: 0;
text-align: center;
}
#col1{
position: absolute;
top: 0;
left: 0;
width: 200px;
}
#col2{
position: absolute;
top: 0;
left: 200px;
width: 200px;
}
#col3{
position: absolute;
top: 0;
left: 400px;
width: 200px;
}
.row2{
position: relative;
top:1.5em;
left: 0;
}
h3 {
margin: 0;
padding: 0;
}
#ol{
position: relative;
top: 0;
NAME:AADITYA PRADEEP CHANDRASEKHAR
REGNO:23MCA0272
left: 0;
width: 198px;
height: 159px;
background-color: aquamarine;
}
#B{
position: absolute;
top: 0px;
left: 203px;
width: 194px;
background-color: yellow;
text-align: right;
}
#C{
position: absolute;
top: 0px;
left: 402px;
width: 198px;
text-align: center;
background-color: red;
}
#ul{
position: absolute;
top:1.5em;
left: 203px;
height: 135px;
background-color: green;
width: 397px;
}
OUTPUT
NAME:AADITYA PRADEEP CHANDRASEKHAR
REGNO:23MCA0272
Q6 PART 2 HTML CODE
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-
scale=1.0">
<title>Document</title>
<link rel="stylesheet" href="Q6_b.css">
</head>
<body>
<div id="row">
<div id="box1"></div>
<div id="box2"></div>
<div id="box3"></div>
<div id="box4"></div>
</div>
</body>
</html>
CSS
#row{
position: relative;
width: 305px;
height: 305px;
border: 3px solid rgb(178, 177, 177);
}
div div{
border: 3px solid#ffffff;
width: 100px;
}
#box1{
NAME:AADITYA PRADEEP CHANDRASEKHAR
REGNO:23MCA0272
position: absolute;
top: 0;
left: 0;
height: 300px;
background-color: blue;
}
#box2{
position: absolute;
top: 0;
left: 100px;
height: 200px;
background-color: yellow;
}
#box3{
position: absolute;
top: 0;
left: 200px;
height: 200px;
background-color: red;
background-color: red;
}
#box4{
position: absolute;
top: 200px;
left: 100px;
width: 200px;
height: 100px;
background-color: green;
}
OUTPUT
NAME:AADITYA PRADEEP CHANDRASEKHAR
REGNO:23MCA0272