pascallino
Gebruiker
- Lid geworden
- 29 dec 2009
- Berichten
- 167
Ik heb met css een grafiek gemaakt.
Alleen die staat aan de linker kan.
Kan ik hem ook rechts uitlijnen.
Mijn grafiek:
De css:
Weet iemand het??
Mvg. Pascallino
Alleen die staat aan de linker kan.
Kan ik hem ook rechts uitlijnen.
Mijn grafiek:
Code:
<ul class='verticalbarGraph'> <li class='p1' style='height: 40px; left: 0px; '>27-12-2010<br> 4</li> <li class='p1' style='height: 320px; left: 100px; '>28-12-2010<br> 32</li> <li class='p1' style='height: 280px; left: 200px;'>29-12-2010 <br> 28</li> <li class='p1' style='height: 80px; left: 300px;'>30-12-2010 <br> 8</li></ul>
Code:
.verticalBarGraph {
height: 500px;
margin: 0;
padding: 0;
position: relative;
}
.verticalBarGraph li {
border: 1px solid #555;
border-bottom: none;
bottom: 0;
list-style: none;
margin: 0;
padding: 0;
position: absolute;
text-align: center;
width: 90px;;
background-color: grey;
color: white;
}
Mvg. Pascallino