I need to design a gallery as show in the image below. So far i have completed it but i am facing design issue.
I need to show four items in a container of width 800 pixels with each div padding on right and bottom plus border-bottom:1px.
Assuming page 4 has only one Item then it shows up as. i am not sure how to design it in such a way so that i can have line after every four elements & if the last page has 1,2,3 items then the line should be across the whole width not just under that item. The way i have it i don't think it is possible. I am not sure how to add a horizontal line after every 4th item.
I am doing this in asp.net using repeater control.
I would appreciate a pointer.
My code
<asp:Repeater ID="rptVideoGallery" runat="server" >
<ItemTemplate>
<div class="video-wrapper">
<asp:HyperLink ID="hylnkvideo" CssClass="youtube" NavigateUrl='<%# getURL(Eval("VID"), Eval("YoutubeID")) %>' runat="server">
<div class="video-image-wrapper">
<asp:Image ID="imgvideo" ImageUrl='<%# getImagePath(Eval("thumbnail"), Eval("YoutubeID")) %>' AlternateText='<%# getTitle(Eval("Title")) %>' runat="server" CssClass="vthumbnail" />
</div>
<div class="playVideo">
<asp:Image ID="imgPlay" runat="server" ImageUrl="~/images/playVideo.png" BorderWidth="0" />
</div>
<div class="video-title">
<asp:Label ID="lblTitle" CssClass="vname" runat="server" Text='<%#Eval("Title") %>'></asp:Label>
<asp:Label ID="lblDate" CssClass="vdate" runat="server" Text='<%# Eval("Date") %>'></asp:Label>
</div>
</asp:HyperLink>
</div>
</ItemTemplate>
</asp:Repeater>
Update: Other idea i have to add hr tag after every 4th item & remove boder from all items...