मेरे पास कुछ बहुत ही बुनियादी कोड है और यह सब कुछ शीर्ष पर संरेखित करने के अलावा काम करता है ... आदर्श रूप से सलाखों को नीचे संरेखित किया जाएगा। मुझे लगता है कि मैं निश्चित स्थिति का उपयोग कर सकता हूं क्योंकि आयाम 50px पर 50px पर वर्गित होते हैं लेकिन मैं कुछ कम "निश्चित" पसंद करता हूं।सीएसएस बार ग्राफ - बहुत सरल
<div style="border: 1px solid #aeaeae; background-color: #eaeaea; width: 50px; height: 50px;">
<div style="position: relative; bottom: 0; float: left; width: 8px; height: 22px; background-color: #aeaeae; margin: 1px;"></div>
<div style="position: relative; bottom: 0; float: left; width: 8px; height: 11px; background-color: #aeaeae; margin: 1px;"></div>
<div style="position: relative; bottom: 0; float: left; width: 8px; height: 6px; background-color: #aeaeae; margin: 1px;"></div>
<div style="position: relative; bottom: 0; float: left; width: 8px; height: 49px; background-color: #aeaeae; margin: 1px;"></div>
<div style="position: relative; bottom: 0; float: left; width: 8px; height: 28px; background-color: #aeaeae; margin: 1px;"></div>
</div>
मैं लाइब्रेरी या जेएस एड ऑन का उपयोग नहीं करना चाहता हूं। इस हल्के वजन को रखना महत्वपूर्ण है।
इसके अलावा मैं बार को लंबवत पसंद करता हूं। किसी भी सीएसएस गुरु की रोशनी को थोड़ा सा छोड़ना मुझे लगता है कि मुझे याद आ रही है? मैं googled है और सबसे उदाहरण जटिल/परिष्कृत करने के लिए दूर हैं,
या 'लंबवत-संरेखण: टेक्स्ट-तल', मेरे लिए काम करता है। – mr5