Okay… Certain pages on this website are going to have 5 photos on them. I want the first image 460px wide and the next 4 to fit underneath it and be 100px wide. I’m using fieldframe, ngen filefield & image sizer. I’m using CSS3 selectors to size the div according to which image it is (which works). The only problem I’m having is saying “if you’re not the first div then you need to be 100px via image sizer”
Here’s my HTML:
<div id="gallery">
{exp:weblog:entries weblog="picture_gallery" dynamic="off" disable="categories|member_data|pagination|trackbacks" limit="1" entry_id="5" }
{picture_gallery}
<div>
<a href="http://{photo_upload}%22class=%22image" rel="gallery" class="image">_ {exp:imgsizer:size src="{photo_upload}" height="430" width="460" alt="{photo_caption}"}_ </a>
</div>
{/picture_gallery}
{/exp:weblog:entries}
</div>Here’s the CSS:
#gallery div { width: 100px; }
#gallery div:first-of-type { margin-left: 0; width: 460px; }
#gallery div:nth-of-type(2) { margin-left: 0; }
#gallery div:nth-of-type(5) { margin-right: 0; }Thanks!