I have this:
<html>
<head>
<title></title>
<meta http-equiv='Content-Type' content='text/html; charset=utf8'>
<style type='text/css'>
body {
background-color: #000;
}
</style>
</head>
<body>
<img src="1.jpg" height="100%" style="float: left;" />
<img src="2.jpg" height="100%" style="float: left;" />
<img src="3.jpg" height="100%" style="float: left;" />
<img src="4.jpg" height="100%" style="float: left;" />
</body>
</html>
This is big images. But my browser show me two images side by side and next in a new line.
I want to disply it all in one line. How to do it?
Stop floating the images and set
white-space: nowrapon the body or some other wrapper element.and:
Demo: http://jsfiddle.net/ambiguous/4Udam/