Static background Box?(back to index)Hi,
Is it possible to have the grey background box static?
I have some images in different sizes that I want to use, but as I choose between the differnt ones the grey background box resizes according to the picture.
At the same time, I want to always have the picture centered, and the only way I could find possible was to set imgmap v-align to 50%, but think it might not be the best solution
posted by Martin on 18 Jul 05 at 6:47 PM
The box has a static width (by default) of 700px. If you want to add a static height, use add "height: 400px;" to the .mainimage style declaration in template_style.php. You'll want the updated version to look like this:
.mainimage {
text-align: center;
width: 700px;
height: 500px;
background-color: #eee;
-moz-border-radius: 10px;
} There's no clean way to do vertical centering with just CSS, though it seems to me I've seen hacks for it here or there. A Google search might turn up some relevant results.
posted by
donald on 23 Jul 05 at 3:42 AM