SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Enthusiast
    Join Date
    Jul 2006
    Posts
    51
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Window Height, Change Div CSS Class

    Is this possible?

    I have a website, two divs.
    The right div is fixed position.

    However when the user browser window, is less than the height of the div, i need it to be no longer fixed, but to scroll with the rest of the page.

    I imagine the logic to be the following:

    -detect div#right height

    -if window-height is less than div#right height. change div class to xxx
    -if window-height is greater than div#right height. div class stays at yyy

    (must update window-height everytime window is resized)

  2. #2
    SitePoint Enthusiast
    Join Date
    Jul 2006
    Posts
    51
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    any idea on this one?


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
  •