Ich erstelle ein Thermometer für Fundraising auf meiner Website. Ich habe einen Code erstellt, um das Thermometer zu erstellen, aber es ist eine horizontale Linie und keine vertikale Linie. Kannst du bitte helfen, das zu drehen?Rotierende Box in HTML
Dank
<div class="primary_font font-32px"><span class="font-16px"></span></div>
<div class='donation_raise_bar' style="background-color:#dee1dd;border-radius:9px;position:relative;width:800;height:26px;">
<span class="fundraise_raised_percentage" style="background-color:#fb1085;border-radius:20px;display:block;overflow:hidden;height:100%;line-height:1.5;min-width:1%!important;width:50%">
<center><span class="fundraise_amount_raised white_text arial_font font-12px bold-text">50%</span></center>
</span>
</div>
<div class="margin-top">
<div class="arial_font font-16px"><span class="bold-text"></span></div>
</div>
<div id="container_2"></div>
</div>
verwenden Sie transform: rotieren (-90deg); – Chiller
Sie können auch Anzeige (flex oder Tabelle) und schließlich Datenattribute ... https://codepen.io/anon/pen/ZKNyoj oder https://codepen.io/anon/pen/zwQzay –