CSS Part4 (QS)
CSS Part4 (QS)
lakhan3singh302016@gmail.com
Practice Questions
HTML Code
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width,
initial-scale=1.0" />
<title>CSS Assignment</title>
<link rel="stylesheet" href="style.css" />
</head>
<body>
<div id="box1">This is box1</div>
<div id="box2">This is box2</div>
<div id="box3">This is box3</div>
<div id="box4">This is box4</div>
<div id="myPic">This is my Pic</div>
</body>
</html>
lakhan3singh302016@gmail.com
CSS Code
/* Qs1. Add a 2s transition on box1 for width changes.
It should have 'ease-in' speed curve & 0.5s delay */
#box1 {
width: 100px;
height: 100px;
background: green;
}
#box1:hover {
width: 600px;
}
#box2 {
width: 100px;
height: 100px;
background: red;
}
lakhan3singh302016@gmail.com
width: 100px;
height: 100px;
background: lightblue;
}
#box4 {
width: 100px;
height: 100px;
background: lightgreen;
}
#myPic {
width: 200px;
height: 200px;
background: pink;
}