PDA

View Full Version : trying to figure out how you center the text catogories


jjcool777
10-18-2002, 01:58 PM
hi,

im trying to figure out how you center the text catogories,

an example is, like these forums where it says,

vbt centrel

&

vb template mods,

etc, on the main index.

the words are centered on the catorories,

how do i do that??

thanx

Tony G
10-18-2002, 11:55 PM
It's as easy as putting an align="center" in the <td> tag but if you need exact code use this mod:

http://www.vbulletintemplates.com/mods/showthread.php?s=&threadid=9&highlight=Centered

jjcool777
10-19-2002, 11:36 AM
thanx but ive tryed that,
it just either places it above or underneaf my catagory image bar

i have a image bar there and cant seem to get it centered on the image?
like yours on here ?

Tony G
10-19-2002, 12:18 PM
Okay, are you editing the correct code? I can't see how such a simple modification can go wrong.

jjcool777
10-19-2002, 01:01 PM
yes tony im doing it correct as this text says

http://www.vbulletintemplates.com/mods/attachment.php?s=&postid=10

sphinx
10-19-2002, 06:17 PM
Admin CP -> Templates -> Modify -> [expand list] -> Forum Home Page Templates -> forumhome_forumbit_level....

for the category bars that contain just the category text it's going to be the forumhome_forumbit_level1_nopost template (or maybe it's level2).
it should be the align="center" in line one that should do the job it worked fine for me

<tr id="cat">
<td bgcolor="{categorybackcolor}" colspan="6" align="center"><a href="forumdisplay.php?s=$session[sessionhash]&forumid=$forum[forumid]"><normalfont color="{categoryfontcolor}"><b>$forum[title]</b></normalfont></a>
<br><smallfont color="{categoryfontcolor}">$forum[description]</smallfont></td>
</tr>