vForums Support > Programming & Coding :: Code Requests & Support :: > Move footer thing to center
Move footer thing to center - Posted By Nick (nickb) on 26th Apr 10 at 7:09pm
I would like to move this:
Purchase Ad-Free Credits
This Forum is Powered By vForums (v2.3)
Create a Forum for Free | Find Forums
To center in the forum. I've tried
<style>
.credit {
text-align: center;
}
</style>
I also tried:
<style>
.bottomtext {
text-align: center;
}
</style>
But it's not working, unless it's the wrong ID's. But I don't see any other ID's for that.
Re: Move footer thing to center - Posted By Michael (wrighty) on 26th Apr 10 at 10:11pm
You got a forum link? Because there is the part on the left also...
Re: Move footer thing to center - Posted By Nick (nickb) on 26th Apr 10 at 10:13pm
Yeah http://dmtesting.vforums.co.uk/
But it's mostly for iDirectory Support.
Re: Move footer thing to center - Posted By Michael (wrighty) on 26th Apr 10 at 10:19pm
What do you want happening to the left section?
Re: Move footer thing to center - Posted By Nick (nickb) on 26th Apr 10 at 10:36pm
The Left section with the stats are gone, there is nothing I want to do with:
All times are GMT-5 :: The current time is 5:38pm
Page generated in 0.3546 seconds
with 46 Database Queries and 1 cache files
All I want to deal with is this:
Purchase Ad-Free Credits
This Forum is Powered By vForums (v2.3)
Create a Forum for Free | Find Forums
^^^ I want that Centered with the forum.
Re: Move footer thing to center - Posted By dog199200 (dog199200) on 26th Apr 10 at 10:37pm
Michael, the left side is gone
I already have a code that sets it to display.none
Re: Move footer thing to center - Posted By Nick (nickb) on 26th Apr 10 at 10:39pm
I tried editing that code to the ID credit, but didn't work.
and it brought back the Stats.
Re: Move footer thing to center - Posted By dog199200 (dog199200) on 26th Apr 10 at 10:52pm
lol you baka, you broke the script them XD ok well I guess taht explains why michael asked XD
Re: Move footer thing to center - Posted By Michael (wrighty) on 26th Apr 10 at 10:58pm
What is the code that you're using to hide the left section, then I can modify the right one as it would be on your forum.
Re: Move footer thing to center - Posted By Nick (nickb) on 27th Apr 10 at 12:20am
This one:
<script type="text/javascript">
window.onload = function() {
if(get('footerstats', ID)) {
get('footerstats', ID).style.display = 'none';
get('footertime', ID).style.display = 'none';
}
}
</script>
and Dwight now I actually had it like this:
<script type="text/javascript">
window.onload = function() {
if(get('credit', ID)) {
get('credit', ID).style.display = 'center';
get('credit', ID).style.display = 'center';
}
}
</script>
and that's when it broke the footerstats one. xD
Re: Move footer thing to center - Posted By Michael (wrighty) on 27th Apr 10 at 12:38am
Remove that coding... and just use this in your global header:
<style type = 'text/css'>
#footertime, #footerstats {
display: none;
}
#bottomtext div {
float: none !important;
text-align: center !important;
}
</style>
Re: Move footer thing to center - Posted By Nick (nickb) on 27th Apr 10 at 2:40am
Thanks it works.
Re: Move footer thing to center - Posted By Michael (wrighty) on 27th Apr 10 at 3:09am