Permalink
Browse files

centered container

  • Loading branch information...
1 parent 96c72c9 commit cda535627ce90a18d32ee1c898d885c68046ec79 @vansteki committed Sep 28, 2012
Showing with 7 additions and 11 deletions.
  1. +7 −11 index.php
View
@@ -18,23 +18,19 @@
<script type='text/javascript' src='assets/js/masonry.js'></script>
<style type="text/css">
-
body{ background-image:url('assets/img/gray.jpg'); }
- #container{
- padding-left: 8px;
- }
-
- .box{
- margin: 3px;
- }
+ .centered { margin: 0 auto; }
+
+ .box{ margin: 3px; }
h1{
font-family: 'Codystar', cursive;
- color:white;
+ color: white;
text-shadow: 2px 2px #272822, 2px 2px gray
}
+ h5{ color: green; }
</style>
</head>
@@ -58,7 +54,7 @@
));
// var_export($ret_obj);
- echo "<center><div id='container'>";
+ echo "<center><div id='container' class='transitions-enabled centered clearfix'>";
foreach($ret_obj as $key => $val){
echo "<a class='box' href=https://www.facebook.com/".$val['uid'].">"."<img src=".$val['pic']." class='img-polaroid'/>"."</a>"; //img-polaroid
}
@@ -104,7 +100,7 @@
$container.imagesLoaded( function(){
$container.masonry({
itemSelector : '.box',
- isResizable : false
+ isFitWidth : true
});
});

0 comments on commit cda5356

Please sign in to comment.