Change the size of the <div> to half its width, but double its height. - HTML CSS CSS

HTML CSS examples for CSS:Quiz

Description

Change the size of the <div> to half its width, but double its height.

Demo Code

ResultView the demo in separate window

<!DOCTYPE html>
<html>
<head>
<style>
div {<!--from w  w w. ja  v a2 s.co  m-->
    width: 100px;
    height: 100px;
    margin: 50px;
    background-color: pink;
    border: 1px solid black;
    transform: scale(0.5,2);
}

</style>
</head>
<body>

<div></div>

</body>
</html>

Related Tutorials