CSS Gradient Statistics Column Chart _ Experience Exchange

Source: Internet
Author: User
Use the drawing tool to make a gradient length. Looks nice. (width: 187px; height 15px)
It was supposed to be when 12%, the picture from left to 12%, the remaining 88% does not show, but does not occupy the ground (looks like the 1px picture bottom is no different). I went to catch a class in the afternoon. It is not possible to find an area that is not occupied.
To hide the remaining percentage of the picture, think of the score first. Light and dark use a picture, each of which accounts for half of the total height of the picture. I wrote:

From 10%-100%, you can't see the effect, change This is possible but there must be content inside the box.
I didn't write it last night. Google did not find a class 4 gradient in the afternoon. But from one of the examples, I got inspired.
Url:http://apples-to-oranges.com/blog/post/css-for-bar-graphs/?id=55
In: Complex CSS Bar Graph
Got this right away:
<! DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 transitional//en" "Http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd "> <ptml xmlns=" http://www.w3.org/1999/xhtml "> <pead> <meta http-equiv=" Content-type "content=" text/html; charset=gb2312 "/> <title> Untitled document </title> <style type=" Text/css "> Dl{margin:0;padding:0;width : 187px;} dd{position:relative;display:block;float:left;width:187px;height:15px, margin:0;border:1px solid #eee;} * HTML dd{ Float:none; } DD Div{position:relative;background:url (".. /image/default/percent.gif "); height:15px;width:100%;text-align:right;} </style> </pead> <body> <dl> <dd> </dd> </dl> <dl> <dd> &LT;/DD&G T </dl> <dl> <dd> <strong>55%</strong> </dd> </dl> <dl> <dd> < strong>55%</strong> </dd> </dl> <dl> <dd> <strong>55%</strong> </dd > </dl> <dl> <dd> <strong>55%</strong> </dd> </dl> <dl> <dd> <strong>65%</strong > </dd> </dl> <dl> <dd> <strong>75%</strong> </dd> </dl> <dl> <dd> <strong>85%</strong> </dd> </dl> <dl> <dd> <strong>95%</ strong> </dd> </dl> <dl> <dd> <strong>100%</strong> </dd> </dl> </body> </ptml>
[Ctrl + A full selection Note: If you need to introduce external JS need to refresh to execute]
Brothers with the need to refer to
  • Related Article

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.