1

Here's a JSFiddle:

http://jsfiddle.net/cKuUy/2/


Here's a screenshot of what I'm aiming for:

enter image description here

And what I'm getting in my browser:

enter image description here

The key difference is that in the actual implementation, the bars do not fill the available width of the containing div element. If I place: width:100%, the bar expands to it's container width, but goes down, below the text; despite both elements being floated left.

Any suggestions?

Only Bolivian Here
  • 35,719
  • 63
  • 161
  • 257

1 Answers1

1

This solution should help: https://stackoverflow.com/a/1767270/1472586

Basically remove float: left and width from the bars and add overflow: hidden to them. You may also have to adjust your margins accordingly (right padding on the headings might work better, for example).

Community
  • 1
  • 1
Jen
  • 586
  • 3
  • 12