how to get style.bottom in javascript

Last post 05-20-2008 3:04 PM by KashifB. 5 replies.

Sort Posts:

  • how to get style.bottom in javascript

    05-20-2008, 10:40 AM
    • Participant
      1,726 point Participant
    • richiej
    • Member since 09-25-2006, 10:24 AM
    • Posts 345

    var iBottom = document.getElementById(Pane11ID).style.bottom;

     

    The line above doesn't work. I can set using style.bottom but not get. Is there a way to get the value of style.bottom or equivalent?

     

    Many thanks

  • Re: how to get style.bottom in javascript

    05-20-2008, 11:26 AM
    • Member
      689 point Member
    • ihsany
    • Member since 05-17-2008, 7:05 AM
    • Turkey
    • Posts 156

    can you send Pane11ID s html ? maybe i can help you..

    ihsany
    ######
    Make It Easy
    --------------dont forget to click <Mark As Answer>------------------
  • Re: how to get style.bottom in javascript

    05-20-2008, 11:32 AM
    • Participant
      1,726 point Participant
    • richiej
    • Member since 09-25-2006, 10:24 AM
    • Posts 345

    Pane11ID  is an object in my javscript method. Its justs just a string value of the panel's ID. I know this fine cos I used an alert to see its value.

     

    thanks

  • Re: how to get style.bottom in javascript

    05-20-2008, 12:40 PM
    • Member
      465 point Member
    • KashifB
    • Member since 07-26-2007, 9:41 AM
    • Bucks, UK
    • Posts 348

    I don't think "bottom" is a property of style. If you're trying to get the bottom border reference try the following:

    style.borderBottom

  • Re: how to get style.bottom in javascript

    05-20-2008, 12:57 PM
    • Participant
      1,726 point Participant
    • richiej
    • Member since 09-25-2006, 10:24 AM
    • Posts 345

    basically, I need to find out the position of the bottom of a div relatives to the page. Is there no attribute that details this? If necessary I can use the top position and add the height of the div. Any idea how I can determine the exact position of the div on the page?

  • Re: how to get style.bottom in javascript

    05-20-2008, 3:04 PM
    Answer
    • Member
      465 point Member
    • KashifB
    • Member since 07-26-2007, 9:41 AM
    • Bucks, UK
    • Posts 348

    You can try to set the DIV tags POSITION style property to ABSOLUTE and set it's TOP property.

Page 1 of 1 (6 items)