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

HTML CSS examples for CSS:Quiz

Description

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

Demo Code

ResultView the demo in separate window

<!DOCTYPE html>
<html>
<head>
<style>
div {<!--  w w w.  j ava 2  s . c  om-->
    border: 10px solid transparent;
    border-image: url(https://www.java2s.com/style/demo/Google-Chrome.png) 30 round;
}
</style>
</head>
<body>

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

</body>
</html>

Related Tutorials