Grow your CSS skills. Land your dream job.

A little help needed

  • # November 18, 2009 at 7:50 pm

    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:
    # November 18, 2009 at 8:43 pm

    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:
    # November 18, 2009 at 10:01 pm

    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)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".