vForums Support Banner



 

Welcome Guest! Please Login or Register
vForums Support :: Programming & Coding :: Database of Codes/Hacks/Mods :: Center Menu - View Topic
Topic Rating: *****
Printable View
Michael
Moderator
*****

[Avatar]
Recoding the future

Posts: 4,043
Status: Offline
Gender: Male
Location: UK
Joined:  

Additional Groups:
Coding Team
***


Reputation: 58%  


pmtwittervForum
Center Menu (30th Dec 07 at 3:23am UTC)
This will center all of the menu buttons! {Smile}

Global Header


Code:
 
  1. <script type="text/javascript">
  2. /*Center Menu - support.virtualforums.co.uk*/
  3. document.getElementById('welcome_table').getElementsByTagName('td')[2].align='center';
  4. </script>
  5.  
 



CSS:

Code:
 
  1. <style type="text/css">
  2. .menu td {
  3.      text-align: center;
  4. }
  5. </style>
  6.  
 
Dreg[Bot]
Moderator
*****

[Avatar]
Broken

Posts: 415
Status: Offline
Gender: Male
Age: 37
Joined:  

Additional Groups:
Coding Team
***


Reputation: 14%  


pm
Re: Center Menu (31st Dec 07 at 6:05pm UTC)
Or CSS

.menu td {
     text-align: center;
}


Image

Now obsession rules my mind
This commotion makes me blind
Searching out who ever runs
Or has stolen away my life

But i've already said

Don't ever back down
Don't ever turn around
My end has come
So now I come for you....

Michael
Moderator
*****

[Avatar]
Recoding the future

Posts: 4,043
Status: Offline
Gender: Male
Location: UK
Joined:  

Additional Groups:
Coding Team
***


Reputation: 58%  


pmtwittervForum
Re: Center Menu (31st Dec 07 at 6:05pm UTC)
 
Or CSS

.menu td {
     text-align: center;
}



yet again..
sshhhh {Tongue Out}

I knew it could be done with CSS but didn't want to! {Tongue Out}
Marc
vChat Developer
*****
I <3 Rossy

Posts: 3,388
Status: Offline
Gender: Male
Location: Ontario, Canada
Age: 32
Joined:  

Additional Groups:
Coding Team
***


Reputation: 40%  


pmwww
Re: Center Menu (31st Dec 07 at 6:09pm UTC)
Sure Wrighty, we believe you. {Wink} {Tongue Out}

rroll.to— Shorten a link, rickroll your friends.
Michael
Moderator
*****

[Avatar]
Recoding the future

Posts: 4,043
Status: Offline
Gender: Male
Location: UK
Joined:  

Additional Groups:
Coding Team
***


Reputation: 58%  


pmtwittervForum
Re: Center Menu (31st Dec 07 at 6:10pm UTC)
Honest I did.

Either way I have added it! {Smile}
[.tR] ookie1
Full Member
***

[Avatar]
Is it choccy?

Posts: 167
Status: Offline
Joined:  
Reputation: 3%  


pm
Re: Center Menu (30th Apr 08 at 9:11am UTC)
Change the title to align menu {Tongue Out} and include how to edit it for right. {Cheesy}




Image

Hallelujah! 'tis done; I believe on the Son; I am saved by the blood of the Crucified One!
 Printable View

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