I am attempting to create a block on my website that resembles the image below:
https://i.sstatic.net/lua4J.png
Unfortunately, I have tried but it is not working. Here is the HTML code I used:
<div class="timelines">
<div class="timeline_div" style=" width:65px; float:left; cursor:pointer;" data-count="1">
<div style="width:100%; float:left;">
<div class="timeline_circle">
<div class="timeline_year">2015</div>
<div class="timeline_month">Sep</div>
</div>
<div class="line"></div>
</div>
<div style="width: 100%; float: left; ">
<h4 class="timeline_heading">heading</h4>
</div>
</div>
<div class="timeline_div" style=" width:65px; float:left; cursor:pointer;" data-count="2">
<div style="width:100%; float:left;">
<div class="timeline_circle">
<div class="timeline_year">2015</div>
<div class="timeline_month">Oct</div>
</div>
<div class="line"></div>
</div>
<div style="width: 100%; float: left; ">
<h4 class="timeline_heading" >BRICKWORKS, FLOORING, PLASTERING</h4>
</div>
</div>
<div class="timeline_div" style=" width:65px; float:left; cursor:pointer;" data-count="3">
<div style="width:100%; float:left;">
<div class="timeline_circle">
<div class="timeline_year">2015</div>
<div class="timeline_month">Nov</div>
</div>
<div class="line"></div>
</div>
<div style="width: 100%; float: left;">
<h4 class="timeline_heading" >BRICKWORKS, FLOORING, PLASTERING, ELECTRICAL, PLUMBING, HEATING, ALUMINIUM</h4>
</div>
</div>
<div class="timeline_div" style=" width:65px; float:left; cursor:pointer;" data-count="4">
<div style="width:100%; float:left;">
<div class="timeline_circle">
<div class="timeline_year">2015</div>
<div class="timeline_month">Dec</div>
</div>
<div class="line"></div>
</div>
<div style="width: 100%; float: left; ">
<h4 class="timeline_heading" >fvbfgb</h4>
</div>
</div>
...
</div>
Here is the CSS I applied:
.timeline_heading
{
transform: rotate(-90deg);
moz-transform: rotate(-90deg);
-o-transform: rotate(-90deg);
-webkit-transform: rotate(-90deg);
}
In the example above, the text in the third block rotates and overwrites other content. How can I fix this issue?