#myGallery { width: 100%; height: 400px; /* Alto de todo el contenedor */ } #myGallery img { border: 2px solid #52697E; /* Borde de las imágenes */ } a.loading { background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgNHHrR8lcb0Bp5isjN98KqF_la6tiq82RQ92nsmSIkBGk2Hs0aaUDLQycOoJ1yxEoyMWP2mmXnWJRjCjYswq8tEICTOcWkECFg1aMx9Ne5Xnt0300N67NtdZDLLnk1meKz6EjBtA1A-VY/) no-repeat center; } .spacegallery { position: relative; overflow: hidden; } .spacegallery img { position: absolute; left: 50%; } .spacegallery a { position: absolute; z-index: 1000; display: block; top: 0; left: 0; width: 100%; height: 100%; }