html - Generate rectangle with variable dimensions in CSS with inner gradient background -


i have variables on php gain values 0 100. want develop simple graph system draw horizontal rectangle given number (0, 1 , 50 , soo). want add gradient background, doing in php complicated , dont want more load in server, know possible in css, im not css developer. if body can me this. in page (http://www.answerbag.com/) can se how want rectangle, in results of pool section in middle of above page.

that's simple since know width. since want full spectrum of gradient show, want resize gradient image using css #score1 { width: 30px } on <img id="score1" src="blue_gradient.png"> later on, can use 1 of many rounder corner methods add round corners it.


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -