Need to know how to center some code please Hitskin_logo Hitskin.com

This is a Hitskin.com skin preview
Install the skinReturn to the skin page

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.
4 posters

    Need to know how to center some code please

    avatar
    FIB
    Forumember


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

    Solved Need to know how to center some code please

    Post by FIB December 6th 2015, 9:04 am

    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, 3:17 am; edited 1 time in total
    Ace
    Ace
    Forumember


    Posts : 250
    Reputation : 49
    Language : Portuguese & English

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

    Post by Ace December 6th 2015, 10:43 am

    Hi,

    Try this:

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

    Regards.
    avatar
    FIB
    Forumember


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

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

    Post by FIB December 6th 2015, 10:48 am

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


    Posts : 250
    Reputation : 49
    Language : Portuguese & English

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

    Post by Ace December 6th 2015, 11:27 am

    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.
    avatar
    FIB
    Forumember


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

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

    Post by FIB December 6th 2015, 12: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
    Ace
    Ace
    Forumember


    Posts : 250
    Reputation : 49
    Language : Portuguese & English

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

    Post by Ace December 6th 2015, 1: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.
    avatar
    FIB
    Forumember


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

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

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

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


    Male Posts : 19432
    Reputation : 2010
    Language : fluent in dork / mumbojumbo & English haha

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

    Post by Ape December 6th 2015, 7:58 pm

     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
    avatar
    FIB
    Forumember


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

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

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

    Thank you @Ape worked perfectly Need to know how to center some code please Bow
    SLGray
    SLGray
    Administrator
    Administrator


    Male Posts : 51554
    Reputation : 3523
    Language : English
    Location : United States

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

    Post by SLGray December 7th 2015, 5: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.