Labwork 2
Labwork 2
Ans.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>CSS Functions</title>
<style>
.functions-demo {
display: flex;
flex-wrap: wrap;
gap: 10px;
.demo-box {
width: 100px;
height: 100px;
display: flex;
justify-content: center;
align-items: center;
color: white;
font-size: 12px;
</style>
</head>
<body>
<div class="functions-demo">
</div>
</body>
</html>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
.object {
width: 100px;
height: 100px;
margin: 10px;
display: inline-block;
text-align: center;
line-height: 100px;
font-size: 14px;
color: white;
</style>
</head>
<body>
</body>
</html>
Q.(3) Program for CSS units such as em, ex, ch, rem, vh, vw, vmin, vmax, cm, mm, in, px, pc, pt.
Ans:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<style>
.unit-box {
margin: 10px;
padding: 10px;
</style>
</head>
<body>
</body>
</html>
Ans:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<style>
body {
p{
padding: 10px;
margin: 10px 0;
</head>
<body>
</body>
</html>