Yes sorry even with that in its still not working which i just dont understand.
There are a couple of images because its a little image gallery scrolling between the two.
There is a live example here If you use the arrows at the bottom right and scroll through a few you’ll see a narrower one that is left aligned when it should be right.
I’ve had to take out the position absolute because it shifts the image to the right hand side of the column on the left, almost as if thats its parent holder
See thats what i tired and it should work as i thought however, the image is thrown right to the bottom left of the site for some strange reason, almost as if its part of .column which its not.
Here is the html…
<div id="site-content">
<div class="column col-padding">
<h2 id="project-title">Large Project</h2><!--END.project-title-->
<div id="project-detail">
<div class="project-info">Client<span>Public</span></div><!--END.project-info-->
<div class="project-info">Completed<span>Default value 1</span></div><!--END.project-info-->
<div class="project-info">Budget<span>budget</span></div><!--END.project-info-->
</div><!--END.project-detail-->
<div id="project-copy">
<p>Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old.</p>
<p>The standard chunk of Lorem Ipsum used since the 1500s is reproduced below for those interested. Sections 1.10.32 and 1.10.33 from “de Finibus Bonorum et Malorum” by Cicero are also reproduced in their exact original form, accompanied by English versions from the 1914 translation by H. Rackham.</p>
<div id="arrow-nav"><a id="left-arrow" href="#">Prev</a> <a id="right-arrow" href="#">Next</a></div>
</div><!--END.project-copy-->
</div><!--END.column-->
<div id="project-image">
<ul>
<li><img width="640" height="363" /></li>
<li><img width="640" height="362" /></li>
</ul>
</div>
</div><!--END.site-content-->
Assuming that #project-image has a width then the img should align to the right.
#project-image {
position:relative;
width:100%;/* ie6 and 7 will need haslayout*/
}
#project-image img {
position:absolute;
right:0;
top:0;
}
If you have set position:relative on the list or ul by mistake then the image will be placed in respect of that parent instead and if it has no width then there will be no right.
The js is modifying the width of the list elements and creating a stacking context with position:absolute so the one with the narrower image is only as wide as it is shown.