Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5949389
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T17:14:35+00:00 2026-05-22T17:14:35+00:00

I’m trying to create an app a little bit like JustGiving.com, which allows people

  • 0

I’m trying to create an app a little bit like JustGiving.com, which allows people who want to raise money for charity to sign up and create a ‘campaign’ page. On this page they outline what they propose to do (run a marathon or shave their heads for example) set a monetary target and then invite all their friends to sponsor them via email, twitter, facebook etc…

Friends come on and donate via paypal and the target gets nearer.

I want to make some kind of indicator to show how close to the target the campaign is. I’m not asking for help with graphics here but I had in mind a kind of thermometer arrangement that you might see on your local church fundraiser http://www.google.co.uk/search?q=target+thermometer&hl=en&prmd=ivns&tbm=isch&tbo=u&source=univ&sa=X&ei=-RfdTYrcEs-2hAeW65y3Dw&ved=0CDcQsAQ&biw=1280&bih=685

I’m building this site in an effort to learn cakephp, and I have to admit my knowledge of php isn’t all that brilliant either so learning that too. I’m surprised how far I’ve got.

Anyway, I haven’t a notion how I might go about doing this and wondered if some kind soul would give me a bit of a route map. If it’s a cakephp route thats great but if it’s just normal php thats cool too!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T17:14:35+00:00Added an answer on May 22, 2026 at 5:14 pm

    Here’s how I did it for tescoforschoolsandclubs.co.uk

    You have two images. One has the full thermometer, one has the empty thermometer.

    Use the empty one as the background to a div, and absolutely position and image with the the full thermomenter bottom, right on top of the empty one.

    You can then set the height of the full image to reflect the %

    e.g.

    <div id='thermometer'>
    <img src='full'>
    </div>
    
    #thermometer {
      width: 100px;
      height: 200px;
      position: relative;
      background: url(empty.jpg) no-repeat top left;
    }
    #thermometer img{
      position: absolute;
      bottom: 0;
      left: 0;
    }
    

    and then:

    #thermometer img{
      height: 0; /* completely empty */
    }
    #thermometer img {
      height: 100px; /* 50% */
    }
    #thermometer img {
      height: 200px; /* 100% */
    }
    

    You can calculate the height of the ‘full’ image based on

    height = (height of image / 100) * percentage
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Basically, what I'm trying to create is a page of div tags, each has
I am trying to understand how to use SyndicationItem to display feed which is
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I am trying to render a haml file in a javascript response like so:
I would like to run a str_replace or preg_replace which looks for certain words
I'm trying to select an H1 element which is the second-child in its group
I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
I'm trying to create an if statement in PHP that prevents a single post
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I want to count how many characters a certain string has in PHP, but

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.