Hi,
Thats where it gets a little more complex =) I'd suggest using something based on what I use on one of my own sites:
Code:
.category_row {
width: 100%;
}
.category_col_split {
float: left;
width: 33%;
}
Code:
<%set link_num_rows = 3%> <%-- change this to "2" for the homepage, BUT be sure to also change the width of .category_col_split to reflect your column width! --%>
<%-- show links --%>
<div class="category_row">
<div class="category_col_split">
<%loop links_loop%>
<%include link.html%>
<%unless row_num % $link_num_rows%>
</div> <%-- close the row-fluid, ready to open new one if needed --%>
<%-- its not the last row, so lets open a new row. We close the category_row outside the loop if needed --%>
<%if not last%>
<div class="category_row"><%-- wanna start a new row now --%>
<%endif%>
<%endif%>
<%endloop%>
<%unless links_loop.length % $link_num_rows%>
<%-- dont close it, as we didn't open a new one... --%>
<%else%>
</div> <%-- close main category_row block --%>
<%endif%>
</div> <%-- end category_row --%>
<%-- / END show links --%>
The setup above is aimed for the 3 column category pages. If you want to change it to 2 columns, change this line:
Code:
<%set link_num_rows = 3%>
Then also be sure to change the width of .category_col_split to 50% (otherwise it will look weird and go onto another line)
Cheers
Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my
Amazon Wish List GLinks ULTRA Package | GLinks ULTRA Package PRO Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin |
Pre-Made Template Sets |
FREE GLinks Plugins!