The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Need to know how to center some code please

4 posters

Go down

Solved Need to know how to center some code please

Post by FIB December 6th 2015, 3:04 pm

I've just started to decorate my forum for Christmas and copied this code

Code:
        $(function() {
            $.getScript("http://perso.numericable.fr/antonywar/NOEL/testhaut.js");
        });

Code copied from here https://help.forumotion.com/t117773-christmas-time-on-forumotion-let-s-decorate-our-forums?highlight=christmas

But its not central on the forum see below

Need to know how to center some code please Captur10


How can I centre it


Last edited by FIB on December 7th 2015, 9:17 am; edited 1 time in total
avatar
FIB
Forumember

Male Posts : 500
Reputation : 2
Language : English
Location : UK

http://ourbulgariaforum.freeforums.eu/

Back to top Go down

Solved Re: Need to know how to center some code please

Post by Ace December 6th 2015, 4:43 pm

Hi,

Try this:

Code:
<p style="text-align:center;">$(function() {
            $.getScript("http://perso.numericable.fr/antonywar/NOEL/testhaut.js");
        });</p>

Regards.
Ace
Ace
Forumember

Posts : 250
Reputation : 49
Language : Portuguese & English

http://ajuda.forumeiros.com/u39577

Back to top Go down

Solved Re: Need to know how to center some code please

Post by FIB December 6th 2015, 4:48 pm

Thanks @ACE but it doesn't show at all with that code
avatar
FIB
Forumember

Male Posts : 500
Reputation : 2
Language : English
Location : UK

http://ourbulgariaforum.freeforums.eu/

Back to top Go down

Solved Re: Need to know how to center some code please

Post by Ace December 6th 2015, 5:27 pm

Hi,

lol, okay. Just grab the JS code from your first post and host it in a JS page. Grab that URL (from the JS page) and go to your Admin CP >> General >> Forum >> Configuration >> Forum Description.

Insert this code:

Code:
<p style="text-align:center;"><script src="path/to/your.js"></script></p>

Regards.
Ace
Ace
Forumember

Posts : 250
Reputation : 49
Language : Portuguese & English

http://ajuda.forumeiros.com/u39577

Back to top Go down

Solved Re: Need to know how to center some code please

Post by FIB December 6th 2015, 6:44 pm

Ace wrote:Hi,

lol, okay. Just grab the JS code from your first post and host it in a JS page. Grab that URL (from the JS page) and go to your Admin CP >> General >> Forum >> Configuration >> Forum Description.

Insert this code:

Code:
<p style="text-align:center;"><script src="path/to/your.js"></script></p>

Regards.

Thanks for your reply but I don't understand what your telling me sorry but I really am not sure what you mean? my fault not yours Embarassed
avatar
FIB
Forumember

Male Posts : 500
Reputation : 2
Language : English
Location : UK

http://ourbulgariaforum.freeforums.eu/

Back to top Go down

Solved Re: Need to know how to center some code please

Post by Ace December 6th 2015, 7:09 pm

Hi,

Sure, no problem Smile

Delete this code:
Code:

<p style="text-align:center;">$(function() {
            $.getScript("http://perso.numericable.fr/antonywar/NOEL/testhaut.js");
        });</p>

Now, host this script in your JS pages:
Code:

        $(function() {
            $.getScript("http://perso.numericable.fr/antonywar/NOEL/testhaut.js");
        });

Now, look for that URL.

You'll see it in this page:

Need to know how to center some code please 04-07-11

Look for the column URL.

Now go to Admin CP >> General >> Forum >> Configuration >> Forum Description.

Place this code in there:
Code:
<p style="text-align:center;"><script src="path/to/your.js"></script></p>

Path to your JS >> Replace it by the URL that you obtained from the last step.

Regards.
Ace
Ace
Forumember

Posts : 250
Reputation : 49
Language : Portuguese & English

http://ajuda.forumeiros.com/u39577

Back to top Go down

Solved Re: Need to know how to center some code please

Post by FIB December 6th 2015, 10:04 pm

Still it didn't work sorry. here is my test forum to look at http://ourbulgariatestforum.betaboard.net/forum
avatar
FIB
Forumember

Male Posts : 500
Reputation : 2
Language : English
Location : UK

http://ourbulgariaforum.freeforums.eu/

Back to top Go down

Solved Re: Need to know how to center some code please

Post by Ape December 7th 2015, 1:58 am

 Give this a Go

ACP >> Display Tab >>   Need to know how to center some code please Images_couleurs Pictures and Colors >> Colors >> CSS stylesheet

Add this code at the top of you page


Code:
embed#noel_deco_swf {
    margin-left: 200px;
}


SAVE.   

To move it left and right just change the 200px to as you wish

I hope that solves your Question for you.

APE


Need to know how to center some code please Left1212Need to know how to center some code please Center11Need to know how to center some code please Right112
Need to know how to center some code please Ape_b110
Need to know how to center some code please Ape1010
Ape
Ape
Administrator
Administrator

Male Posts : 19109
Reputation : 1991
Language : fluent in dork / mumbojumbo & English haha

http://chatworld.forumotion.co.uk/

Back to top Go down

Solved Re: Need to know how to center some code please

Post by FIB December 7th 2015, 9:16 am

Thank you @Ape worked perfectly Need to know how to center some code please Bow
avatar
FIB
Forumember

Male Posts : 500
Reputation : 2
Language : English
Location : UK

http://ourbulgariaforum.freeforums.eu/

Back to top Go down

Solved Re: Need to know how to center some code please

Post by SLGray December 7th 2015, 11:45 am

Topic solved and archived


Need to know how to center some code please Slgray10

When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
SLGray
SLGray
Administrator
Administrator

Male Posts : 51481
Reputation : 3519
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum