PDA

View Full Version : Instructions on how to center phpLD


bobby9101
11-05-2005, 03:08 PM
There are a gazillion ways to center PHPLD, but here is the simplest and the one I use.
Open up Index.php
find:
<? php
BEFORE add
<center>
Find
?>
AFTER add
</center>

ZOMP
11-05-2005, 03:22 PM
Omg. thank you so much!!! This is awesome stuff!!one111 one!!! Thanks! :)

ZOMP
11-05-2005, 03:25 PM
When I do this the width of my directory goes back to 100% but the content still remains positioned at 75%.

:(

bobby9101
11-05-2005, 03:28 PM
please post the url
i think i know what the problem is, but i would like to see it

ZOMP
11-05-2005, 03:31 PM
I have removed the centering code for now, Until I can solve my other problem first.

ZOMP
11-05-2005, 03:32 PM
I PM you my Url. :)

kickass
11-06-2005, 03:32 PM
The center tag is a deprecated html element, and may not work well in all browsers. It would be much better to use this in the css for either the main table, or the wrapper if you're going tableless and nonbloated:

.yourtableorwrapper {
margin: 0 auto;
}

You might have to add position:relative; though maybe not.

bobby9101
11-06-2005, 07:07 PM
yeah, that would work...
but most users would not know how to do that
so i chose the easiest way to do it from the default script

kickass
11-07-2005, 02:18 AM
The easiest way is not the best way or the smartest way. Ya makes yer choices and ya takes yer chances . . .

Me, I'd rather take a an extra thirty seconds and do it right.

bobby9101
11-07-2005, 02:35 AM
ok, i agree with you...
but my way is the simplest for the average directory owner

iluvm
11-11-2005, 05:43 PM
Hello all,
Kickass can you tell me in a bit more detail where your mod fits into the CSS please.

kickass
11-11-2005, 07:56 PM
It depends on which layout/template you're using. Any element can be centered this way, so if you wrap your whole layout in a div called .wrapper and use the css I specified, then this will work. You can also use this same method to center a table. Give the table a class and define the class in the css.

Manus
12-11-2005, 10:47 PM
I dont really think this is a good script for people without knowledge of html.


Just adding the center tags will destroy more then heal if you know what i mean.

Manus
12-11-2005, 11:31 PM
HAHAHAHA.....

It took me like 5 sec to cleaver out how to center it....

You just... no wait.... I wont tell you.....

If you really whant to know
Or you can donate.... hehe... no iam not forcing you guys to pay me, but it would really be nice to get some mony onceawile.... Soo

OK..... you do like this....:

Go to main.tpl

Find:
Content visible to registered users only.

Replace it with:
Content visible to registered users only.


Easy html....

bobby9101
12-11-2005, 11:56 PM
using that code is the exact same code as i used
align="center" is also depreciated
so it doesnt matter
if you are trying to be valid use kickass's method

Manus
12-12-2005, 12:29 AM
OMG!!!


PLEASE learn html....


I beg you.... If i hear anymore of your bull'hit i will die....
ok.... Take it easy..... a deep breath.....

ok.... You can test me... ask anyone else.... What the result is...
Your sub categorys become **censored****censored****censored****censored**ed up (sorry for bad language)... The whole page become bad. I change the tables content you changes the whole site...
My method is more reliable and safe.... AND IT WORKS!

So dont come and tell me i do wrong before you know it!

bobby9101
12-12-2005, 01:05 AM
I do not a lot about html.
I am a web designer, the past month i have switched to the xhml dtd. i used to use the <center> tag - not anymore... HOWEVER it is still easy for a user to use and centers all of your pages perfectly. Though it does not work in old old old browsers that nobody uses. so that is why i said that youcould use my method if you didn't know how to use kickass's or you could use his for the compliant method :wink:
and don't go cussing me out. because you aren't all that you think you are :roll:

Manus
12-12-2005, 01:23 AM
OK... it doas not work in old browsers... OK..... Strange it doasent work in my new updates FireFox... Strange.... Xhtml.... LOL....

Dont stand there and say your batter the all other... Admit that you had a misstake.... I lookt at your site and you really warent a web designer yet...

All users that whant centered text use my method or you cant see the script in all updated browsers...

LoL