Add sum per section

I’m working on adding this to a site: http://www.writelessdomore.co.uk/jquery/bbc-style-responsive-slider/ but really wanted to be able to use some sort of sum to workout what ‘left’ should be set to for each section. That way I could add new sections without having to manually do it.

At the moment the next section is 41px more to the left. So is it possible to work out what the previous section was then add 41 to it and the continue to do that until it gets to the end?

Thanks

From what I’m seeing, the left parts are multiples of 100. Where are you getting the 41px from?

Sorry my mistake I meant 41%

I’ve changed the width of each section and wondered if there was a way of automatically increasing the percentages?

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.