Setting <div> height in NN4 ( 3 Views )

no kitty!
  1. We've got:
    <div id="header">Header</div>

    How can I change div's height in NN4 using JavaScript?

    (SERKAN, Andorra)

  2. This script will be run when the page have been loaded.
    Code:

    <script type="text/javascript">
      window.onload = function() {
        var path = ( document.all ) ? document.all['header'] : document.getElementById('header');
        path.style.height = '150px';
      }
    </script>

    Hope this is what you wanted.

    -- lilleman

    (utku, Pakistan)

  3. [quote=lilleman]
    This script will be run when the page have been loaded.
    [indent]Hope this is what you wanted.

    This doesn't play in NN4

    (anıl, Benin)



Related Topics ... (or search in 1.720.883 topics !)

setting height of div (4)
setting div height (11)
javascript for setting div height (10)
setting the height of a div not works in ff and ie (2)
setting a non-outer div to max height (1)
setting the height in a div layer that doesn't have any content (5)
setting div height to 100% but not scaling (2)
setting div to 100% height of parent - ie6 (3)
div widths in nn4 (6)




copyright © 2007-2031 Pfodere.COM ( 5 Pfoyihuee Online )

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 
1.4076