I have a query regarding aligning all elements in a single line.
This is how it should ideally appear:
Initially, I arranged the elements by creating tables and inserting each ProgressBar as Div Elements within table cells. However, this setup seems to be ineffective in IE 7.
Therefore, I decided to construct the HTML using only Div Elements without any tables. The current structure looks like this:
Could you please point out what I may be overlooking?
Below is the CSS code snippet:
div.coverage-container {
border: 1px solid rgba(0, 0, 0, 0.13);
width:370px;
height:30px;
}
div.progressbar-content{
width: 95px;
text-align: center;
float:left;
border: 1px solid rgba(0, 0, 0, 0.13);
}
div.progressbar-maindiv {
background-color: #DAE2E3;
border-radius: 13px 13px 13px 13px;
margin: 3px -9px 3px 114px;
padding: 3px;
width: 75px;
float:left;
}
.progressbar-percentage {
background-color: #F23F54;
border-radius: 15px 15px 15px 15px;
height: 15px;
width: 80.00%;
}
.progressbar-chart-icon { margin-right: 5px; float:right; text-align: center; }
And here is the corresponding HTML Code:
<div class="coverage-container">
<div class="progressbar-content">
<div class="progressbar-maindiv">
<div class="progressbar-percentage">
<center>80%</center>
</div>
</div>
<img width="21" height="21" title="Get Trends" src="http:/localhost/newccft2/Content/images/chart-graph-icon.png" class="progressbar-chart-icon" />
</div>
<div class="progressbar-content">
<div class="progressbar-maindiv">
<div class="progressbar-percentage">
<center>80%</center>
</div>
</div>
<img width="21" height="21" title="Get Trends" src="http:/localhost/newccft2/Content/images/chart-graph-icon.png" class="progressbar-chart-icon">
</div>
<div class="progressbar-content">
<div class="progressbar-maindiv">
<div class="progressbar-percentage">
<center>80%</center>
</div>
</div>
<img width="21" height="21" title="Get Trends" src="http:/localhost/newccft2/Content/images/chart-graph-icon.png" class="progressbar-chart-icon">
</div>
</div>