The resize
property controls
whether an element can be manually resized.
The resize
property applies to elements
whose overflow
value is something other than "visible".
resize: none|both|horizontal|vertical;
resize |
Yes | No | Yes | Yes | Yes |
<!DOCTYPE html>
<html>
<head>
<style>
div {<!-- w w w.j av a 2 s . c om-->
border: 2px solid;
padding: 10px 40px;
width: 300px;
resize: both;
overflow: auto;
}
</style>
</head>
<body>
<div>Resize me.</div>
</body>
</html>