# Javascript to dynamically create width

**URL:** <https://forum.kirupa.com/t/javascript-to-dynamically-create-width/313235>\
**Category:** Uncategorized\
**Created:** [August 24, 2010, 3:55pm UTC](https://forum.kirupa.com/t/javascript-to-dynamically-create-width/313235 "2010-08-24T15:55:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![saucey](https://avatars.discourse-cdn.com/v4/letter/s/ecae2f/32.png) [@saucey](https://forum.kirupa.com/u/saucey)\
**Post date:** [August 24, 2010, 3:55pm UTC](https://forum.kirupa.com/t/javascript-to-dynamically-create-width/313235/1 "2010-08-24T15:55:11Z")

</div>

Hi Guys, I have a little problem.

I have a image based website, that needs to scroll horizontally not vertically, so these are in a container with a set width to allow this. However this isn’t suitable as the client will need to add pictures and this will ruin the design.

I have been messing about with JavaScript to create a script that will dynamically create the width however I just cant get anything to work. Any help would be great.
