Give the <div> element an image border. Slice the image at 30px and stretch it. - HTML CSS CSS

HTML CSS examples for CSS:Quiz

Description

Give the <div> element an image border. Slice the image at 30px and stretch it.

Demo Code

ResultView the demo in separate window

<!DOCTYPE html>
<html>
<head>
<style>
div {<!--from w  w w. j a  v a  2s.c o m-->
    border: 10px solid transparent;
    border-image: url(https://www.java2s.com/style/demo/Opera.png) 30 stretch;
}
</style>
</head>
<body>

<div>This is a div element. It has some text.</div>

</body>
</html>

Related Tutorials