How to make a background image responsive in Bootstrap 3.1.1

I'm having trouble getting background images to scale responsively.  I'm using:

 <div class="row-fluid">
       <div id="swirl" class="col-md-12  col-centered">

#swirl {
  background: url("../_img/common/swirl_305x180.png") no-repeat scroll center center;
  background-size: cover;
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

dlearman1Author Commented:
"row-fluid" should be "row"
Tom BeckCommented:
Any element you want to be responsive should never have a fixed width. You can however set a min-width to prevent it from getting too small.
Alicia St RoseOwner & Principle Developer/DesignerCommented:
You can specify your width in percentage and height: auto for the #swirl selector.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
dlearman1Author Commented:
After grubbing around for a while, I came up with this solution which works:

Basically the key points seem to be:

1. You can apply background-size if background-image is specified. It doesn't work if the background shortcut is used.

2. A second empty div is created inside the div holding the background image. Top padding is added to the inside div and sized in % as (image height/image width)*100. This adds fake content that maintains the image shape.  Standard tricks like adding min-height:1px; and &nbsp; don't work
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.