This is my HTML code:
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>Flickr Feed</title>
    <link href="../_css/site.css" rel="stylesheet">
    <link rel="stylesheet" type="text/css" href="bootstrap.min.css">
    <style>
        .image {
            float: left;
            padding: 10px;
            border: solid 1px rgb(27,45,94);
            background-color: white;
            margin: 0 30px 30px 0;
        }
        .image:hover {
            border-color: red;
            background-color: rgb(204,204,204); 
        }
        img{
            max-width: 100%;
            height:auto;
            display: block;
        }
        header{
            z-index: 9999;
        }
    </style>
    <script src="../_js/jquery.min.js"></script>
    <script>
        $(document).ready(function() {
            var url = "http://api.flickr.com/services/feeds/photos_public.gne?jsoncallback=?";
            var searchInfo = {
                id : "113158794@N07",
                format : "json"
            }
            $.getJSON(url,searchInfo,function(data){
                $("h1").text(data.title);
                var photoHTML = '';
                $.each(data.items,function(i,photo){
                    photoHTML += '<div class="col-sm-6 col-md-4 col-lg-3">';
                    photoHTML += '<a href="' + photo.link +'">';
                    photoHTML += '<img src="' + photo.media.m.replace('_m','_s') + '">';
                    photoHTML += '<p>' + photo.title + '</p></a></div>';
                });
                $('#photos').append(photoHTML);
            }); 
        }); // end ready
    </script>
</head>
<body>
    <div class="wrapper">
        <header>
            JAVASCRIPT <span class="amp">&</span> jQUERY: THE MISSING MANUAL
        </header>
        <div class="content">
            <div class="main">
                <h1>Flickr Images</h1>
                <div id="photos"></div>
                <br class="clearLeft">
            </div>
        </div>
        <footer>
            <p>JavaScript & jQuery: The Missing Manual, 3rd Edition, by <a href="http://sawmac.com/">David McFarland</a>. Published by <a href="http://oreilly.com/">O'Reilly Media, Inc</a>.</p>
        </footer>
    </div>
</body>
</html>
I like to use a nth:child selector so on the ($.getJSON(url,searchInfo,function(data){ ) part I can clear the float sometime.
 
     
     
     
     
    