...

View Full Version : Fix Overflow in images gallery



neodjandre
02-05-2012, 10:34 PM
Hello,

Could someone please help me fix the vertical scrollbar issue that appears in the gallery as well as the overlapping of the last image in the gallery.

http://www.greekconcierge.com/venue-gallery.php

The CSS code is:



<style type="text/css">
body {
margin: 0 auto;
padding: 0;
width: <% gallery_width %>;
font: 14px Georgia, "Times New Roman", Times, serif;
}
h1 {
font: normal 320%/100% Georgia, "Times New Roman", Times, serif;
margin: 20px 0 5px 0;
letter-spacing: -2px;
}
.credits {
border-bottom: solid 1px #ccc;
padding-bottom: 5px;
margin: 0 0 30px 0;
font: 120% Garamond, Georgia, serif;
}
.credits em {
color: #999;
}
.backlink a {
font-size: 10px;
text-decoration: none;
color: #AAA;
}
.backlink a:hover,
.backlink a:visited:hover {
color: #000;
}
img {
border: none;
}
#page_nav {
color: #999;
clear:both;
text-align: center;
}
#page_nav a:link, #page_nav a:visited, #page_nav a:hover, #page_nav a:visited:hover {
text-decoration: none;
color: #222;
}
#breadcrumb_nav {
color: #999;
}
#breadcrumb_nav a:link, #breadcrumb_nav a:visited, #breadcrumb_nav a:hover, #breadcrumb_nav a:visited:hover {
text-decoration: none;
color: #222;
}
a {
color: black;
}
#container {
overflow: auto;
width: 100%
}
.hidden {
visibility: hidden;
position:absolute;
top:0;
left:0;
display:inline;
}

/* ---------- gallery styles start here ----------------------- */
.gallery {
list-style: none;
margin: 0;
padding: 0;
}
.gallery li {
padding: 0px;
margin: 0;
float: left;
position: relative;
width: 95px;
height: 95px;
}
.gallery li:hover img {
border-color: #000;
background: #000;
}
.gallery img {
background: #000;
border: solid 0px #888;
padding: 5px;
}
.gallery em {
background: #000 url(images/grey-gradient.gif) repeat-y;
color: #000;
font-style: normal;
padding: 2px 10px;
display: block;
position: absolute;
top: 110px;
left: 9px;
border: 0px solid #000;
border-left-color: #888;
}
.gallery a {
text-decoration: none;
}
.gallery a:hover em {
background: #000 url(images/orange-gradient.gif) repeat-y;
border-color: #000;
}
.newversion {
position: absolute;
right: 0;
top: 0;
margin: 0;
padding: 0;
border: none;
float: none;
}
.newversion a img {
background-color: transparent;
color: black;
border: none;
text-decoration: none;
}
</style>

abduraooft
02-06-2012, 07:25 AM
Try
.gallery li {
padding: 0px;
margin: 0;
float: left;
position: relative;
width: 95px;
/*height: 95px;*/

}
#container {

width: 100%
}

.gallery {
list-style: none;
margin: 0;
padding: 0;
overflow: auto;
}

neodjandre
02-06-2012, 08:55 PM
thanks you are a true legend !!



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum