+ 8
Can we give height related to width ?
Eg. width:80%; height:same as width; or 70% of width; Since screen sizes differ from phone to phone but can the ratio be the same JavaScript or any CSS method ?
2 Answers
+ 15
This can help :- In Jquery
var cw = $('div').width();
$('div').css({'height':cw+'px'});
+ 1
maybe using vh values for the width?
g2g is view heigh.