I'm trying to resize a div
element.
I managed to do it by using resize:
css property like so:
http://codepen.io/bengedi/pen/GJMpPd
But it doesn't work with IE.
how can I make it work on IE10+ with css and/or js only (not jQuery).
I'm trying to resize a div
element.
I managed to do it by using resize:
css property like so:
http://codepen.io/bengedi/pen/GJMpPd
But it doesn't work with IE.
how can I make it work on IE10+ with css and/or js only (not jQuery).
CSS resize
is not supported by IE. This is for reference:
http://www.w3schools.com/cssref/css3_pr_resize.asp
Can you please explain what actually you're looking for?
There are few way to resize element. Example:
Using CSS
.normal {
width: 200px;
height: 100px;
}
.normal.resized {
width: 400px;
height: 200px;
}
Using Javascript
Assume you have <div class="normal"></div>
var div = document.querySelectorAll('.normal');
div.style.width = 400;
div.style.height = 200;
Using CSS Transform
.normal {
width: 200px;
height: 100px;
}
.normal.scaled {
transform: scale(1.2); // Scale 120%
}
If you try to ask "How to create cross browser resizable div?", you can check answered question: How to make HTML element resizable using pure javascript?