VeaZna Junior Member
"Pickle Weasil" Posts: 78 Status: Offline Location: Guess... Joined:
pmwww | Center Nav Tree (8th Oct 08 at 10:28pm UTC) Resolved | | I tried css but failed. It's either I did it wrong or it can't be done with css. | |
|
|
dog199200 Guest | Re: Center Nav Tree (9th Oct 08 at 1:59am UTC) | | OK using the same setup as the logo aligning, this should work.
Code: - <script type="text/javascript">
- <!--
- document.getElementsByClassName("nav_tree")[0].align = 'center';
- //-->
- </script>
| |
|
VeaZna Junior Member
"Pickle Weasil" Posts: 78 Status: Offline Location: Guess... Joined:
pmwww | Re: Center Nav Tree (9th Oct 08 at 2:06am UTC) | | sorry, the code doesn't work. | |
|
|
dog199200 Guest | Re: Center Nav Tree (9th Oct 08 at 2:19am UTC) | | OK now if its going to work at all, then it will work with one of theses, I''m not suire if the table has to be defined so try both of them and see if they work:
Global Header:
Code: - <style type="text/css">
- .nav_tree td {
- text-align: center;
- }
- </style>
Or
Code: - <style type="text/css">
- .nav_tree {
- text-align: center;
- }
- </style>
I know the JS was right, so I just hope this css works. | |
|
VeaZna Junior Member
"Pickle Weasil" Posts: 78 Status: Offline Location: Guess... Joined:
pmwww | Re: Center Nav Tree (9th Oct 08 at 2:24am UTC) | | sorry, none of them work. | |
|
|
dog199200 Guest | Re: Center Nav Tree (9th Oct 08 at 2:30am UTC) | | crap, I wonder if its possible to move the nav tree.. Because that should of worked. and I had even tested a few other ways taht i didnt post and they didn't work either, so edit the threads title and add (Marc) to it and he'll get to it when he can, sorry I tried. | |
|
VeaZna Junior Member
"Pickle Weasil" Posts: 78 Status: Offline Location: Guess... Joined:
pmwww | Re: Center Nav Tree (9th Oct 08 at 2:34am UTC) | | I think it is possible cuz if u could put the nav tree in a table, u probably can center it
thanks for trying! | |
|
|
dog199200 Guest | Re: Center Nav Tree (9th Oct 08 at 2:38am UTC) | | ya i know, and I even tried to modify the code that put it into a table as well and that wouldnt work either. | |
|
Ross Administrator
Posts: 3,709 Status: Offline Gender: Male Age: 8 1⁄1 Joined:
Additional Groups: Support Team
pmwwwgtalkvForum | Re: Center Nav Tree (9th Oct 08 at 8:35am UTC) | | You weren't far off with text-align
Code: - <style type="text/css">
- <!--
- #nav_tree {
- display: block;
- text-align: center;
- }
- //-->
- </style>
| |
|
|
dog199200 Guest | Re: Center Nav Tree (9th Oct 08 at 11:43am UTC) | | ah ok, i see what I did wrong | |
|
VeaZna Junior Member
"Pickle Weasil" Posts: 78 Status: Offline Location: Guess... Joined:
pmwww | Re: Center Nav Tree (11th Oct 08 at 4:35am UTC) | | Thanks Ross! | |
|
|