The Scale()Method
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="STYLESHEET" type="text/css" href="web.css">
<title>web design</title>
</head>
<body>
<h1>The Scale()Method</h1>
<p>The scale()method increases or decreases the size of an element</p>
<div>This div element is two times of its original width, and three times of its original height.</div>
</body>
</html>
CSS Scale()Method Style
div{
margin: 150px;
width:200px;
height:100px;
background-color: yellow;
border:1px solid black;
transform: scale(2,3);
}
No comments:
Post a Comment