I would very much appreciate some very simple help repositioning the default image in the photo gallery on this page on my site: http://www.musicphotographics.com/ja...1.31.09_p1.htm. I'd like the default image to be as far from the left of the gallery as the image that pops up when small images are hovered over. I'd also like the image that pops up when small images are hovered over to be as low from the top of the gallery as the default image.
Lastly, I'd like the "Next Gallery" link to be centered directly under the default image in the gallery. It's just a heading now.
Here's the text page for the gallery:
#gallery
{
width:630px; height:510px; padding:10px; border:1px solid #333; background: #008; position:absolute; left:10px; top:100px;
}
#gallery b.default
{
position:absolute; left:10px; top:20px; width:530px; height:450px; text-align:center;
}
#gallery b.default img
{
display:block; margin:0 auto 10px auto; border:1px solid #eee; border-color:#555 #ddd #eee #333;
}
#gallery b.default span
{
display:block; color:#fff; font-family:verdana, arial, sans-serif; font-weight:normal; font-size:15px; width:350px; margin:0 auto;
}
#gallery ul
{
list-style:none; padding:0; margin:0; width:180px; position:relative; float:right;
}
#gallery ul li
{
display:inline; width:52px; height:52px; float:left; margin:0 0 5px 5px;
}
#gallery ul li a
{
display:block; width:50px; height:50px; text-decoration:none; border:1px solid #000; border-color:#eee #555 #333 #ddd;
}
#gallery ul li a span
{
display:none;
}
#gallery ul li a img
{
display:block; width:50px; height:50px; border:0;
}
#gallery ul li a:hover
{
white-space:normal; border-color:#555 #ddd #eee #333; background:#008;
}
#gallery ul li a:hover b
{
position:absolute; left:-450px; top:0; width:450px; height:450px; text-align:center; background:#008; z-index:20;
}
#gallery ul li a:hover span
{
display:block; color:#fff; font-family:verdana, arial, sans-serif; font-weight:normal; font-size:15px; width:350px; margin:0 auto;
}
#gallery ul li a:hover img
{
margin:0 auto 10px auto; width:auto; height:auto; border:1px solid #eee; border-color:#555 #ddd #eee #333;
}
#gallery ul li a:active, #gallery ul li a:focus
{
white-space:normal; border-color:#555 #ddd #eee #333; background:#008;
}
#gallery ul li a:active b, #gallery ul li a:focus b
{
position:absolute; left:-450px; top:0; width:450px; height:450px; text-align:center; background:#008; z-index:10;
}
#gallery ul li a:active span, #gallery ul li a:focus span
{
display:block; color:#fff; font-family:verdana, arial, sans-serif; font-weight:bold; font-size:15px; width:350px; margin:0 auto;
}
#gallery ul li a:active img, #gallery ul li a:focus img
{
margin:0 auto 10px auto; width:auto; height:auto; border:1px solid #eee; border-color:#555 #ddd #eee #333;
}
Thanks in advance for the help!!
Lastly, I'd like the "Next Gallery" link to be centered directly under the default image in the gallery. It's just a heading now.
Here's the text page for the gallery:
#gallery
{
width:630px; height:510px; padding:10px; border:1px solid #333; background: #008; position:absolute; left:10px; top:100px;
}
#gallery b.default
{
position:absolute; left:10px; top:20px; width:530px; height:450px; text-align:center;
}
#gallery b.default img
{
display:block; margin:0 auto 10px auto; border:1px solid #eee; border-color:#555 #ddd #eee #333;
}
#gallery b.default span
{
display:block; color:#fff; font-family:verdana, arial, sans-serif; font-weight:normal; font-size:15px; width:350px; margin:0 auto;
}
#gallery ul
{
list-style:none; padding:0; margin:0; width:180px; position:relative; float:right;
}
#gallery ul li
{
display:inline; width:52px; height:52px; float:left; margin:0 0 5px 5px;
}
#gallery ul li a
{
display:block; width:50px; height:50px; text-decoration:none; border:1px solid #000; border-color:#eee #555 #333 #ddd;
}
#gallery ul li a span
{
display:none;
}
#gallery ul li a img
{
display:block; width:50px; height:50px; border:0;
}
#gallery ul li a:hover
{
white-space:normal; border-color:#555 #ddd #eee #333; background:#008;
}
#gallery ul li a:hover b
{
position:absolute; left:-450px; top:0; width:450px; height:450px; text-align:center; background:#008; z-index:20;
}
#gallery ul li a:hover span
{
display:block; color:#fff; font-family:verdana, arial, sans-serif; font-weight:normal; font-size:15px; width:350px; margin:0 auto;
}
#gallery ul li a:hover img
{
margin:0 auto 10px auto; width:auto; height:auto; border:1px solid #eee; border-color:#555 #ddd #eee #333;
}
#gallery ul li a:active, #gallery ul li a:focus
{
white-space:normal; border-color:#555 #ddd #eee #333; background:#008;
}
#gallery ul li a:active b, #gallery ul li a:focus b
{
position:absolute; left:-450px; top:0; width:450px; height:450px; text-align:center; background:#008; z-index:10;
}
#gallery ul li a:active span, #gallery ul li a:focus span
{
display:block; color:#fff; font-family:verdana, arial, sans-serif; font-weight:bold; font-size:15px; width:350px; margin:0 auto;
}
#gallery ul li a:active img, #gallery ul li a:focus img
{
margin:0 auto 10px auto; width:auto; height:auto; border:1px solid #eee; border-color:#555 #ddd #eee #333;
}
Thanks in advance for the help!!

Let me know what you think...
). I look back at some of my older one-page css style sheets and shutter. I'm getting there! I actually think one of your threads a while back influenced me to start working my styles like that.
It's kinda funny because when I started using InDesign styles, it was like "Oh! This is just like CSS."
Comment