Hi there,
I am building a small WebApp, and using a list to display country values for a specific variable. It should be like
Country A 10
Country B 4
Country C 125
So, what I have in CSS is this:
and the code like this:
But, when using a 1px border around the SPANs, I see that the "variable" box is a big as the name, but the "value" boxes are taller, as if there would be a BR attached to the SPAN.
What is this, and how can I solve this?
Thanks for any hints!
I am building a small WebApp, and using a list to display country values for a specific variable. It should be like
Country A 10
Country B 4
Country C 125
So, what I have in CSS is this:
Code:
.variable {
font-size: 12px;
font-weight: bold;
color: #7388a5;
}
.value {
font-size: 12px;
text-align: right;
float: right;
}
Code:
<ul>
<li>
<span class="variable">Afghanistan</span>
<span class="value">10</span>
</li>
</ul>
What is this, and how can I solve this?
Thanks for any hints!
Comment