Support » Themes and Templates » Javascript messes CSS

  • nwc2001


    I’m using javascript to add up numbers in a form on my site.

    I’ve created a separate page template to include this at the very top:
    <script type=”text/javascript”>

    and the header php file includes this:
    <head profile=”″
    <script type=”text/javascript” src=””></script>

    The problem I’m having is on the form page the CSS appears to be screwed up. Here’s what it looks like:

    Here’s what I would like it to look like (this page uses the normal Page template):

    I’m not sure what’s happening with the CSS… I played around with it a bit the only way for the javascript to work is if the call is at the very top of the page template which seems to mess up the formatting. Any help would be greatly appreciated.

  • The topic ‘Javascript messes CSS’ is closed to new replies.