That's only possible if the container and the children have a width
and the children are float
ed left
. Here's a copy'n'paste'n'runnable SSCCE which demonstrates it.
<!doctype html>
<html lang="en">
<head>
<title>SO question 2982423</title>
<style>
#container {
width: 750px;
}
#container .image {
float: left;
width: 250px;
}
</style>
</head>
<body>
<div id="container">
<div class="image"><img src="http://sstatic.net/so/img/logo.png"></div>
<div class="image"><img src="http://sstatic.net/so/img/logo.png"></div>
<div class="image"><img src="http://sstatic.net/so/img/logo.png"></div>
<div class="image"><img src="http://sstatic.net/so/img/logo.png"></div>
<div class="image"><img src="http://sstatic.net/so/img/logo.png"></div>
</div>
</body>
</html>