CSS3 Resize Property

The CSS3 resize property is having three common values as shown below −

  • horizontal
  • vertical
  • both

Example

Using both the values in resize property in the CSS3 user interface:

Live Demo

<html>
   <head>
      <style>
         div {
            border: 2px solid;
            padding: 20px;
            width: 300px;
            resize: both;
            overflow: auto;
         }
      </style>
   </head>
   <body>
      <div>My Website</div>
   </body>
</html>
Updated on: 2020-06-29T08:26:27+05:30

114 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements