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>

Advertisements