Change the size of the background image to: width 100px, height 80px. - HTML CSS CSS

HTML CSS examples for CSS:Quiz

Description

Change the size of the background image to: width 100px, height 80px.

Demo Code

ResultView the demo in separate window

<!DOCTYPE html>
<html>
<head>
<style>
body {<!--from w w w  .j a v a  2  s .  co  m-->
    background:url(https://www.java2s.com/style/demo/Opera.png);
    background-size: 100px 80px;
    background-repeat: no-repeat;
}
</style>
</head>
<body>

<h1>This is a Heading</h1>
<p>This is a paragraph.</p>
<p>This is another paragraph.</p>

</body>
</html>

Related Tutorials