CSS3 - User Interface
CSS3 - User Interface
For changing any element into different standards like resizing property or creating outline offset, the CSS3 user interface property is used.
The resizing property of CSS3-user interface has three values like horizontal, vertical or both.
Syntax:
resize: horizontal/vertical/both; CSS3 outline offset property allows drawing a line to make a border which is around the element.
Syntax:
Outline-offset:< n> px; Example:
<html>
<head>
<style>
div {
border: 2px solid;
padding: 20px;
width: 300px;
resize: both;
overflow: auto;
}
p {
margin: 20px;
padding: 10px;
width: 300px;
height: 100px;
border: 5px solid pink;
outline: 5px solid green;
outline-offset: 15px;
}
</style>
</head>
<body>
<div>CSS3 User Interface-resize property</div><br><br>
<p>CSS3 User Interface-Outline offset</p>
</body>
</html>
Output: