View Full Version : Centered Categories in Root
cancan
11-10-2006, 11:49 PM
Hello....
:) How can ı center the all categories and sub pages?
Best Regards.
redeye
11-11-2006, 06:54 AM
Which template and in which version??
cancan
11-11-2006, 08:35 AM
Melancholy Esyndicat 2.0
redeye
11-11-2006, 09:33 AM
Melancholy Esyndicat 2.0
Add the "red" text to your css
div.categories div.categ
{
text-align: center;
line-height: 22px;
padding-left: 15px;
background-image: url('../img/ico-dir.gif');
background-position: top left;
background-repeat: no-repeat;
margin-left: 5px;
padding-left: 25px;
}
cancan
11-11-2006, 09:55 AM
div.categories div.categ
{
text-align: center;
line-height: 22px;
padding-left: 15px;
background-image: url('../img/ico-dir.gif');
background-position: top left;
background-repeat: no-repeat;
margin-left: 5px;
padding-left: 25px;
}
it's not working :( I'm put it but the result is same :(
www.campingparksbeach.org
redeye
11-11-2006, 10:08 AM
Try deleting the files in the tmp folder and then refresh
cancan
11-11-2006, 11:02 AM
:( Everything is same ı delete the files in the TMP folder than ı upload the CSS file again :(
sorry this is not solution :(
redeye
11-11-2006, 01:44 PM
It was working when I visited your site - which is now unreachable!
cancan
11-12-2006, 08:41 AM
http://img98.imageshack.us/my.php?image=websitemi1.jpg I want to center shown in the picture...
Tilek E.
11-20-2006, 12:15 PM
Hi, cancan!
Here is the problem solving of centered categories' columns:
1) Open index.tpl file. Find the string: {$categories} and instead of it write the following strings:
<div style="margin: 0 10em;" >
{$categories}
</div>
2) Open style.css file.
Find the following code:
div.categories div.col
{
float: left;
height: 100%;
text-align: left;
width: 195px;
padding-top: 15px;
position: relative;
}
div.categories div.last
{
float: left;
height: 100%;
text-align: left;
width: 205px;
padding-top: 15px;
}
Replace the selected text with:
width: 33%;
Mominur Rahman
02-27-2007, 02:42 PM
For my template I only change style.css and its works.
Vasily B.
03-05-2007, 08:20 AM
Hi,
Most templates differ so it's not a fact that changes for one template will work fine with another.
vBulletin® v3.7.0, Copyright ©2000-2013, Jelsoft Enterprises Ltd.