KapitanSparrow
01-08-2012, 03:56 PM
I heard some of you guys are into web design. Can anyone offer a suggestion why I have these weird pieces of extra padding next to my photos? I am talking about the little rectangles in between the pics. I bet the solution is really easy so I figured why try to figure it out on my own? :haha: Seriously though, as one web design amateur to the next, please help before I turn to drinking (more drinking that is)?
Here's a screenshot:
50339
I can provide the code if necessary.
PS: We should get a Bogley section dedicated to web design and things of that nature. Or at least a post.
Here's the CSS:
ul.gallery {
list-style: none;
}
.gallery li img {
width: 150px;
height: 113px;
}
.gallery li p {
font-family: Verdana, Geneva, sans-serif;
font-size: small;
color: #333;
text-align: center;
text-shadow:1px 1px 10px #fff;
list-style: none;
}
ul.gallery li a {
float: left;
border: 1 solid #FFF;
padding-top: 10px;
padding-right: 10px;
padding-bottom: 5px;
padding-left: 10px;
-moz-box-shadow: 0px 2px 15px #333;
positon: relative;
text-decoration: none;
background-color: #EEE;
list-style: none;
}
ul.gallery li a:hover {
z-index: 10
-moz-box-shadow: 3px 5px 15 px #333;
-webkit-box-shadow: rgb(51, 51, 51) 0px 2px 15px;
background-color: #FFF;
z-index: 50;
}
ul.gallery li a.pic1 {
z-index: 1;
-webkit-transform: rotate(-10deg);
-moz-transform: rotate(-10deg);
-webkit-box-shadow: rgb(51, 51, 51) 0px 2px 15px;
position: relative;
top: 100px;
left: 100px;
}
ul.gallery li a.pic2 {
z-index: 2;
-webkit-transform: rotate(-10deg);
-moz-transform: rotate(-45deg);
-webkit-box-shadow: rgb(51, 51, 51) 0px 2px 15px;
position: relative;
top: 200px;
left: 200px;
}
ul.gallery li a.pic3 {
z-index: 3;
-webkit-transform: rotate(-10deg);
-moz-transform: rotate(-45deg);
-webkit-box-shadow: rgb(51, 51, 51) 0px 2px 15px;
position: relative;
top: 300px;
left: 300px;
}
ul.gallery li a.pic4 {
z-index: 4;
-webkit-transform: rotate(-10deg);
-moz-transform: rotate(-45deg);
-webkit-box-shadow: rgb(51, 51, 51) 0px 2px 15px;
position: relative;
top: 400px;
left: 400px;
}
ul.gallery li a.pic5 {
z-index: 5;
-webkit-transform: rotate(-10deg);
-moz-transform: rotate(-45deg);
-webkit-box-shadow: rgb(51, 51, 51) 0px 2px 15px;
position: relative;
top: 500px;
left: 500px;
}
HTML:
<ul class="gallery">
<li><a href="#" class="pic1"><img src="images/trips/bell_canyon.jpg" alt="Bell Canyon"><p>Bell Canyon</p></li>
<li><a href="#" class="pic2"><img src="images/trips/black_hills_yellowstone.JPG" alt="Black Hills i Yellowstone"><p>Black Hills i Yellowstone</p></li>
<li><a href="#l" class="pic3"><img src="images/trips/blackhills_2010.JPG" alt="Black Hills 2010"><p>Black Hills 2010</p></li>
<li><a href="#" class="pic4"><img src="images/trips/browns_hole.jpg" alt="Browns Hole"><p>Browns Hole</p></li>
<li><a href="#" class="pic5"><img src="images/trips/butterfield_canyon.JPG" alt="Butterfield Canyon"><p>Butterfield Canyon</p></li>
...
</ul>
Here's a screenshot:
50339
I can provide the code if necessary.
PS: We should get a Bogley section dedicated to web design and things of that nature. Or at least a post.
Here's the CSS:
ul.gallery {
list-style: none;
}
.gallery li img {
width: 150px;
height: 113px;
}
.gallery li p {
font-family: Verdana, Geneva, sans-serif;
font-size: small;
color: #333;
text-align: center;
text-shadow:1px 1px 10px #fff;
list-style: none;
}
ul.gallery li a {
float: left;
border: 1 solid #FFF;
padding-top: 10px;
padding-right: 10px;
padding-bottom: 5px;
padding-left: 10px;
-moz-box-shadow: 0px 2px 15px #333;
positon: relative;
text-decoration: none;
background-color: #EEE;
list-style: none;
}
ul.gallery li a:hover {
z-index: 10
-moz-box-shadow: 3px 5px 15 px #333;
-webkit-box-shadow: rgb(51, 51, 51) 0px 2px 15px;
background-color: #FFF;
z-index: 50;
}
ul.gallery li a.pic1 {
z-index: 1;
-webkit-transform: rotate(-10deg);
-moz-transform: rotate(-10deg);
-webkit-box-shadow: rgb(51, 51, 51) 0px 2px 15px;
position: relative;
top: 100px;
left: 100px;
}
ul.gallery li a.pic2 {
z-index: 2;
-webkit-transform: rotate(-10deg);
-moz-transform: rotate(-45deg);
-webkit-box-shadow: rgb(51, 51, 51) 0px 2px 15px;
position: relative;
top: 200px;
left: 200px;
}
ul.gallery li a.pic3 {
z-index: 3;
-webkit-transform: rotate(-10deg);
-moz-transform: rotate(-45deg);
-webkit-box-shadow: rgb(51, 51, 51) 0px 2px 15px;
position: relative;
top: 300px;
left: 300px;
}
ul.gallery li a.pic4 {
z-index: 4;
-webkit-transform: rotate(-10deg);
-moz-transform: rotate(-45deg);
-webkit-box-shadow: rgb(51, 51, 51) 0px 2px 15px;
position: relative;
top: 400px;
left: 400px;
}
ul.gallery li a.pic5 {
z-index: 5;
-webkit-transform: rotate(-10deg);
-moz-transform: rotate(-45deg);
-webkit-box-shadow: rgb(51, 51, 51) 0px 2px 15px;
position: relative;
top: 500px;
left: 500px;
}
HTML:
<ul class="gallery">
<li><a href="#" class="pic1"><img src="images/trips/bell_canyon.jpg" alt="Bell Canyon"><p>Bell Canyon</p></li>
<li><a href="#" class="pic2"><img src="images/trips/black_hills_yellowstone.JPG" alt="Black Hills i Yellowstone"><p>Black Hills i Yellowstone</p></li>
<li><a href="#l" class="pic3"><img src="images/trips/blackhills_2010.JPG" alt="Black Hills 2010"><p>Black Hills 2010</p></li>
<li><a href="#" class="pic4"><img src="images/trips/browns_hole.jpg" alt="Browns Hole"><p>Browns Hole</p></li>
<li><a href="#" class="pic5"><img src="images/trips/butterfield_canyon.JPG" alt="Butterfield Canyon"><p>Butterfield Canyon</p></li>
...
</ul>