SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Member
    Join Date
    May 2008
    Posts
    9
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Detect DIV dimensions in Javascript

    I'm trying to overlay a div on top of another one, but I want the one to keep the exact dimensions as the one below it, and I thought I could use javascript to assign variables to the height and width of the reference div and dynamically update the overlaid DIV...only problem is, I'm a complete newby when it comes to programming can somebody help please?

  2. #2
    SitePoint Guru
    Join Date
    May 2004
    Location
    santa rosa, ca
    Posts
    969
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I think that the jQuery dimensions plugin can do this with just one line of code.
    nondenominational, noncommercial, nonprofit,
    listener-supported, 24-hour, Christian ministry:
    Listen Live Online

  3. #3
    SitePoint Member
    Join Date
    May 2008
    Posts
    9
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ooh.. THANKS


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
  •