W
Warren Thai
i have a cascading style sheet with this in it
*******************************
..menu
{
position : absolute;
width : 60px;
height : 50px;
background-color : #FFC0CB;
top : 71px;
visibility : hidden;
font-family : verdana;
font-size : 10pt;
border-color : black;
border-width : 2px;
border-style : solid;
}
******************************
i have in my html this:
******************************
<div id="menu_1" class="menu">
<a href="t1.html"> Item 1 </a><br/>
<a href="t2.html"> Item 2 </a><br/>
<a href="t3.html"> Item 3 </a>
</div>
*******************************
i have a javascript along with this html
that has this:
*********************************
var m1 = document.getElementById("menu_1");
function test()
{
alert(m1.style.height);
}
*********************************
when i run this function, it shows nothing.
if i use "m1.style.top" it works
but height it doesn't
why?
*******************************
..menu
{
position : absolute;
width : 60px;
height : 50px;
background-color : #FFC0CB;
top : 71px;
visibility : hidden;
font-family : verdana;
font-size : 10pt;
border-color : black;
border-width : 2px;
border-style : solid;
}
******************************
i have in my html this:
******************************
<div id="menu_1" class="menu">
<a href="t1.html"> Item 1 </a><br/>
<a href="t2.html"> Item 2 </a><br/>
<a href="t3.html"> Item 3 </a>
</div>
*******************************
i have a javascript along with this html
that has this:
*********************************
var m1 = document.getElementById("menu_1");
function test()
{
alert(m1.style.height);
}
*********************************
when i run this function, it shows nothing.
if i use "m1.style.top" it works
but height it doesn't
why?