Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript A little help needed

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #26823
    Nert
    Member

    Hello all,

    I have been pulling my hair out for the past couple hours and was hoping someone would be able to shed some light on a seeminlgy easy fix. I have searched the forums and google high and low with no definitive answer to my issue.

    What I am attempting to do is dynamically increase the width of a surrounding div by 220px everytime a child div is added. What happens at the end of the each loop it is not incrementing instead I am left with 220px width total. I have attached the code below. I will post link as well.

    http://getmoxied.net/fafu/fafu-video-gallery.html

    Code:
    #66786
    TeMc
    Member

    Firstoff: I’ve never used Math before in jQuery, so you may need to adjust the code a bit.

    But here’s what I’d try:

    Code:
    #66789
    Nert
    Member

    Thanks much for your help. It was not the exact answer but it was exactly what it took to give me some insight to get it done.

    Thanks again.

    code posted below.

    Code:
Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.