title: finding the centre of dynamically generated divs
body: <p>I have a page that contain n amount of divs in columns of 3. The divs are potentially different widths, and some divs will contain one image, whereas some will contain two. Image number one is always centred in the div. Unfortunately, the way the page is generated it's impossible to have image number 2 sit a certain and consistent distance from image number one - which is what I'm trying to achieve.</p>
  
  <p>Each image number 2 has a unique asp.net client Id followed by icon e.g. ctl00_icon.</p>
  
  <p>Each image one has the same name - not my doing!</p>
  
  <p>Non of the divs have an id</p>
  
  <p>So what I thought about doing was - get the width of each div, divide it my 2, and use this to give my image 2 a reference point for positioning.</p>
  
  <p>Any pointers on how I might go about achieving this? Or is there a better way?
  Thanks
  Stu</p>