Extending User Interface with CSS3

CSSWeb DevelopmentFront End Technology

To extend user interface, CSS comes with the resize and outline-offset properties. Following is and example −

Example

 Live Demo

<!DOCTYPE html>
<html>
<head>
<style>
div {
   margin: 20px;
   border: 1px solid rgb(0, 26, 255);
   outline: 4px dashed rgb(90, 2, 86);
   outline-offset: 15px;
}
textarea {
   display: inline-block;
}
</style>
</head>
<body>
<h1>Extending user interface example</h1>
<h3>Resize property</h3>
<textarea style="resize: none;">Textarea : Not resizable</textarea>
<textarea>Textarea - Resizable (By default)</textarea>
<h3>Outline property</h3>
<div>Some text inside div</div>
</body>
</html>

Output

The above code will produce the following output −

raja
Published on 11-May-2020 12:49:04
Advertisements