PDA

View Full Version : 4 across FAQ CSS doesn't work for me - help


christulk
Oct-14-2006, 08:31 PM
Hello,

I would like my galleries to appear across the page, not down the page. I copied the code from the FAQ but it doesn't work. Do I need to do something else with the code - modify it perhaps?? If I do, how do I do it??

Also tried a while ago to have the front page galleries show their contents, ie how many sub galleires (is that what they are called??) are in easch.

any tips would be appreciated.

Thanks

Chris

Andy
Oct-14-2006, 08:50 PM
Hi, remove this from your CSS, it doesn't belong there, it's Javascript:


function changeCategoryInfo()
{
re = /^([0-9]+ )(galler(y|ies))/;

divTag1 = document.getElementById("categoriesBox");
divTag2 = document.getElementById("subcategoriesBox");
if ((divTag1)|| (divTag2))
{
if (divTag1)
divTags = divTag1.getElementsByTagName("div");
else
divTags = divTag2.getElementsByTagName("div");

for (i=0; i<divTags.length; i++)
{
if (divTags[i].className == "miniBox")
{
pTags = divTags[i].getElementsByTagName("p");
re.exec(pTags[1].innerHTML);
pTags[1].innerHTML = RegExp.$1 + RegExp.$2;
}
}
}
}

christulk
Oct-14-2006, 09:24 PM
Thanks Andy,

Got rid of that code stuff, but the galleries are still vertical (I should say the sub galleries - ie in the Portrait gallery there are other galeries and they are the ones that I would like to run horizontal)

Cheers

Mike Lane
Oct-15-2006, 06:44 AM
Add the red:

#navcontainer ul li a
{
text-decoration: none;
padding: .2em 1em;
}

christulk
Oct-16-2006, 02:19 AM
Mike,

Thanks very much - all done!
Cheers:clap

ivar
Oct-16-2006, 02:47 AM
Mike,

Thanks very much - all done!
Cheers:clapw00t, looking good :thumb