• I am trying to add a piece of .js in my header in the form of a bannerzest banner.

    I foulnd a plug in entitled “add to head” that allows for adding code above the header file with re-writing the header file.

    The .js I input shows up aligned left instead of aligned center with the rest of the blog theme.

    Any help on getting this code to align center would be appreciated.

    bannerzest banners

    code I am inputing

    <script type=”text/javascript” src=”http://frenchtoastandhugs.com/bannerzest/bzLoader.js”></script><noscript><p style=”background-color:#ffffff;color:#000000;padding:1em;”>Your browser doesn’t support JavaScript or you have disabled JavaScript.</p></noscript><div id=”SWBZ96742F9BC4594B7FAD7A”></div><div id=”LKBZ96742F9BC4594B7FAD7A”></div>


    add to header plug in


    website

    thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • Content alignment is dealt with by CSS or HTML, not JavaScript. Find the div you want to align, then set it’s css property to text-align:center

    Thread Starter silsurf

    (@silsurf)

    thanks so much.

    I know I can easily muck things up when adding code, can you point to towards the “div” that I would “set” within this string?

    <script type=”text/javascript” src=”http://frenchtoastandhugs.com/bannerzest/bzLoader.js”></script><noscript><p style=”background-color:#ffffff;color:#000000;padding:1em;”>Your browser doesn’t support JavaScript or you have disabled JavaScript.</p></noscript><div id=”SWBZ96742F9BC4594B7FAD7A”></div><div id=”LKBZ96742F9BC4594B7FAD7A”></div>

    Thread Starter silsurf

    (@silsurf)

    I think I got it, thanks for your time and post!

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘adding .js to header alignment’ is closed to new replies.