multiple class values in css

Problem

My code is like this:

<div class="multiplicity one">
    <div class="content">
        <p>Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.</p>

    </div>
</div>

<div class="multiplicity two">
    <div class="content">
        <p>Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.</p>
    </div>
</div>

<div class="multiplicity three">
    <div class="content">
        <p>Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.</p>
    </div>
</div>

In my every multiplicity class,I have given three distinct background image. I want to stop background repeat for every three class(multiplicity one,multiplicity two, multiplicity three ) and write the css code like

.multiplicity {
    background-repeat: no-repeat
}

Is this syntax incorrect?? It does not work. I have tested in Firefox latest version.

Problem courtesy of: ShaFi ShaWon

Solution

Here is a demo for you

FIDDLE DEMO

.multiplicity {
   background-repeat:no-repeat;
}
.one {
    background-image:url(http://i57.tinypic.com/b4erh2.jpg);
}
.two {
    background-image:url(http://i59.tinypic.com/2lkfhuw.jpg);
}
.three {
    background-image:url(http://i57.tinypic.com/2lkflhd.jpg);
}

And a demo for repeat too

FIDDLE DEMO

.multiplicity {
   background-repeat:repeat-x;
}
.one {
    background-image:url(http://i57.tinypic.com/b4erh2.jpg);
}
.two {
    background-image:url(http://i59.tinypic.com/2lkfhuw.jpg);
}
.three {
    background-image:url(http://i57.tinypic.com/2lkflhd.jpg);
}
Solution courtesy of: Richa

Discussion

There is currently no discussion for this recipe.

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