Log in

View Full Version : Vertical align of image in DIV with height:100% ???



beberon
06-05-2011, 10:13 PM
Hello everyone!

What I'm trying is to center vertically an image in DIV Tag which has height:100% and width:100%. I did it with a table, but I want also the image to be resizable when resizing the window. I use this code, but that's not a resizable image in the center of the window:

<div id="pu" style="position:absolute; top:0px; left:0px; height:100%; width:100%"><img src="" id="bu" height="80%" vspace="30" hspace="30"><div/>

Any help is appreciated, thank you for your time :)

Stoycho

beberon
06-06-2011, 01:10 AM
Hmmm, I guess it's impossible as the way as I want it :)
I accept also scripts for this, but couldn't find any in the forum. All of them are for Image Galleries, but with absolute sizes(px). The idea is: vertically center image on the window and resizable when resizing the window. And also I'll need a script for swapping and fading this image with another... I guess I want too much :(

Or maybe it's better to ask the right question: is there somewhere in DD an Image Gallery with fading out/in effect for the images and these images to be resizable with resizing the window/page/resolution?

beberon
06-06-2011, 10:39 AM
No one knows?

beberon
06-06-2011, 11:51 AM
Alright guys, I think I did something like a vertical align with resizable image, but using frames which is not good for the next scripts I'll use, I mean it doesn't work for me really. You may see on: www.stdobrev.com/architecture.html in "arthill" link.
So, is it possible the same effect, but all in just one page? Please help me just a little :)