vForums Support Banner


Visit Base Classics - Gaming Chairs

 

Welcome Guest! Please Login or Register
vForums Support :: Programming & Coding :: Code Requests & Support :: Center Nav Tree - View Topic
Topic Rating: *****
Printable View
VeaZna
Junior Member
**

[Avatar]
"Pickle Weasil"

Posts: 78
Status: Offline
Location: Guess...
Joined:  
Reputation: 1%  


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.

ImageImage
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:
 
  1. <script type="text/javascript">
  2. <!--
  3. document.getElementsByClassName("nav_tree")[0].align = 'center';
  4. //-->
  5. </script>
 
VeaZna
Junior Member
**

[Avatar]
"Pickle Weasil"

Posts: 78
Status: Offline
Location: Guess...
Joined:  
Reputation: 1%  


pmwww
Re: Center Nav Tree (9th Oct 08 at 2:06am UTC)
sorry, the code doesn't work.

ImageImage
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:
 
  1. <style type="text/css">
  2. .nav_tree td {
  3.      text-align: center;
  4. }
  5. </style>
 


Or

Code:
 
  1. <style type="text/css">
  2. .nav_tree {
  3.      text-align: center;
  4. }
  5. </style>
 


I know the JS was right, so I just hope this css works.
VeaZna
Junior Member
**

[Avatar]
"Pickle Weasil"

Posts: 78
Status: Offline
Location: Guess...
Joined:  
Reputation: 1%  


pmwww
Re: Center Nav Tree (9th Oct 08 at 2:24am UTC)
sorry, none of them work.

ImageImage
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
**

[Avatar]
"Pickle Weasil"

Posts: 78
Status: Offline
Location: Guess...
Joined:  
Reputation: 1%  


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! {Grin}

ImageImage
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
*****

[Avatar]

Posts: 3,709
Status: Offline
Gender: Male
Age: 8 11
Joined:  

Additional Groups:
Support Team
***


Reputation: 45%  


pmwwwtwittergtalkvForum
Re: Center Nav Tree (9th Oct 08 at 8:35am UTC)
You weren't far off with text-align {Smile}

Code:
 
  1. <style type="text/css">
  2. <!--
  3. #nav_tree {
  4. display: block;
  5. text-align: center;
  6. }
  7. //-->
  8. </style>
 

Image
dog199200
Guest
Re: Center Nav Tree (9th Oct 08 at 11:43am UTC)
{Smile} ah ok, i see what I did wrong
VeaZna
Junior Member
**

[Avatar]
"Pickle Weasil"

Posts: 78
Status: Offline
Location: Guess...
Joined:  
Reputation: 1%  


pmwww
Re: Center Nav Tree (11th Oct 08 at 4:35am UTC)
Thanks Ross! {Smile}

ImageImage
 Printable View

All times are GMT+0 :: The current time is 8:54pm
Page generated in 0.3495 seconds
This Forum is Powered By vForums (v2.4)
Create a Forum for Free | Find Forums