On my webpage, I have 5 images and a div. Currently, the images are displaying one under another, but I want them to appear in a straight line while only showing one image at a time within the div.
HTML CODE:
<html>
<head>
<title>My City Karachi</title>
<script src="http://code.jquery.com/jquery-1.9.1.js"></script>
<link rel="stylesheet" href="css/slider.css" type="text/css" />
</head>
<body style="margin: 0; padding: 0;">
<div class="slider">
<img src="asd.jpg"/>
<img src="baba dedo.jpg"/>
<img src="picccccture 3.jpg"/>
<img src="Page-3.jpg"/>
<img src="Page 4 copy.jpg" />
</div>
</body>
</html>
CSS CODE:
@charset "utf-8";
html, body {
margin: 0;
padding: 0;
}
.slider {
margin: 0 auto;
overflow: hidden;
}
.slider img {
width: 900px;
height: 650px;
float:left;
}
I hope that explanation was clear enough!
Your assistance would be greatly appreciated! :)