hello...
i have a div object on my page.
its height is depend on its content.
i want to set like this:
"if its height is lower than the screen height, set its height to screen height value"
HOW TO DO THAT?
i try this below code but nothing work:
if(document.getElementById('my_div_id').style.width < screen.height){
document.getElementById('my_div_id').style.width = screen.height;
}
help, thanks



hello...



Bookmarks