Quantcast
Channel: User Just code - Stack Overflow
Viewing all articles
Browse latest Browse all 41

Answer by Just code for Set height of = to height of another through .css

$
0
0

I am assuming that you have used height attribute at both so i am comparing it with a heightleft do it with JavaScript.

var right=document.getElementById('rightdiv').style.height;var left=document.getElementById('leftdiv').style.height;if(left>right){    document.getElementById('rightdiv').style.height=left;}else{    document.getElementById('leftdiv').style.height=right;}

Another idea can be found hereHTML/CSS: Making two floating divs the same height.


Viewing all articles
Browse latest Browse all 41

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>