How do you Add an image to the left side of a div

Problem

I want to have an image appear on the left side of the div (centered vertically). How is this done?

This is the code that I have. (The image appears very tiny in each of the corners. I have tried background url(../images/error24x24.png) no repeat; but that didn't work right either. (The image loaded, but it looked funky)

.formValidation {
    background-color:rgb(71,89,32);
    color:white;
    font-weight:bold;
    padding:10px;
    -moz-border-radius:6px;
    border-radius:6px;
    -webkit-border-image: url(../images/error24x24.png);
    border-image: url(../images/error24x24.png);
}

    <div class="formValidation">
        Please enter a category.
    </div>

EDIT: My final CSS:

.formValidation {
    background-color:rgb(52,31,36);
    color:white;
    font-weight:bold;
    padding:10px 10px 10px 35px;
    -moz-border-radius:15px;
    border-radius:15px;
    margin-bottom:10px;
    background-image: url(../images/error24x24.png);
    background-position:8px center;
    background-repeat:no-repeat;
}
Problem courtesy of: Yecats

Solution

Use background-image and background-position instead of border-image.

Here's a good place to start with: http://coding.smashingmagazine.com/2009/09/02/backgrounds-in-css-everything-you-need-to-know/

Check MDN for a comprehensive documentation: https://developer.mozilla.org/en-US/docs/CSS/background

Solution courtesy of: Gabriel Izaias

Discussion

There is currently no discussion for this recipe.

This recipe can be found in it's original form on Stack Over Flow.