WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Problem importing Javascript calculator (5 posts)

  1. Doylejg3
    Member
    Posted 1 year ago #

    I had a programmer build me a custom calculator for my website. He does the calculators using Javascript. I've played with a number of plug-ins to try and get it working and the closest I've gotten is using one called Raw HTML.

    The goal is to insert the calculator into a page so I've pasted the code into the content area using the Raw HTML designated tags. Here's what I've got so far: http://dc-housing.com/calculator/

    The calculator is functional and working like it's supposed to. The problem is the formatting. It seems as though it's being arbitrarily expanded across the page. It's supposed to be much smaller and oriented a bit differently.

    Any suggestions for getting this working?

  2. Put it in a div narrower than the full width content div it's in right now, like

    <div style="width:400px;">
    
    calculator code
    
    </div>

    See http://www.w3schools.com/html/default.asp

  3. Doylejg3
    Member
    Posted 1 year ago #

    Thanks for that. I'm definitely getting closer. I applied the div as suggested. The calculator was narrower. I also tried to apply a height because I would also like it to be shorter. And this is the result I'm getting now: http://dc-housing.com/calculator/

    Any suggestions on how to make the object shorter?

  4. Look at the w3c schools link; use a height value.

  5. Doylejg3
    Member
    Posted 1 year ago #

    Thanks again for your help. I think I'm satisfied with it. I'll bookmark that website!

Topic Closed

This topic has been closed to new replies.

About this Topic