SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Member
    Join Date
    Jun 2003
    Location
    wirral
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Firebird and getElementById not working

    http://nothingbutme.net/lsr/test1.htm

    http://nothingbutme.net/lsr/style.css

    I've got the content div to auto stretch to fill the content size, but the blocks at the side don't follow thru. I'm using some Javascript code I found here to fix that, and it does in IE6 and Opear6, but not in Firebird. For some reason it won't read the actual height I've already specified (in any browser), but specifically in Firebird it won't adjust the size.

  2. #2
    Sultan of Ping jofa's Avatar
    Join Date
    Mar 2002
    Location
    SvÝ■jˇ­
    Posts
    4,080
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Add 'px' to the height value?
    document.getElementById('rightbox').style.height =
    document.getElementById('content').offsetHeight + 'px';

  3. #3
    SitePoint Member
    Join Date
    Jun 2003
    Location
    wirral
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by jofa
    Add 'px' to the height value?
    document.getElementById('rightbox').style.height =
    document.getElementById('content').offsetHeight + 'px';

    Ta. Typically that breaks in Opera 6 Gunna add code to id Mozilla, and do that line, as without px it works in IE6 and Opera6.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •