Permalink
Browse files

centred container

  • Loading branch information...
1 parent 65f8069 commit 77d494da08101fa972a43a2ae7a34e5701a3badd @vansteki committed Sep 28, 2012
Showing with 8 additions and 15 deletions.
  1. +8 −15 index.php
View
@@ -20,25 +20,19 @@
</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;
- }
+
+ h5{ color: green; }
</style>
</head>
@@ -90,7 +84,7 @@
$female_count = count($ret_obj);
$male_count = count($ret_obj2);
- echo "<div id='container'>";
+ echo "<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>";
}
@@ -125,11 +119,10 @@
<script type="text/javascript">
$(function(){
var $container = $('#container');
-
$container.imagesLoaded( function(){
$container.masonry({
itemSelector : '.box',
- isResizable : false
+ isFitWidth : true
});
});

0 comments on commit 77d494d

Please sign in to comment.