.thumbnails img:hover { border: 4px solid #00ccff; cursor:pointer; } .preview img { border: 4px solid #444; padding:5pxpx; width: 800px; } </style> <?php include_once "common/query.php"; $query = new query (); $result = $query->getImages(); ?> </head> <body> <script>if (Galleria) { $("body").text('Galleria works') }</script> <?php if (sizeof($result) > 0) { ?> <div class="gallery" align="center">