Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Please help me with some css Re: Please help me with some css

#134893
Kitty Giraudel
Participant

The problem of your solution is that you do an extra HTTP request, which is as you may know, “bad” for performance. You have then 4 solutions to deal with your problem:

_ leave it as is; an extra HTTP request is no big deal even if it’s not optimized
_ include your image in a sprite with your other background images, and position it accordingly
_ [convert](http://dataurl.net/#dataurlmaker) your image into an encoded image in your CSS
_ use pure CSS to do so, making sure to provide a decent fallback for unsupported browsers