Hello,
A. CONTEXT
My album is generated by a batch script, but DOS cannot get the size of an image file. So, the a unique picture size is defined in the script.
http://www.airfirst.ch/b1/album_im.html (IMAGE MAP version)
http://www.airfirst.ch/b1/album_div.html (DIV version)
B. NAVIGATION
- 2 half sensitive zones on each picture.
- Click on the left/right image side to go up/down.
C. QUESTION (for DIV version)
To avoid the problem with pictures having different size (pic. #2 http://www.airfirst.ch/b1/PiCS/Pic002.JPG),
how to make the DIV box to fit its content instead of using absolute value like:
?
PS: in my case, I use the image as background of a DIV
Thanks and regards.
A. CONTEXT
My album is generated by a batch script, but DOS cannot get the size of an image file. So, the a unique picture size is defined in the script.
http://www.airfirst.ch/b1/album_im.html (IMAGE MAP version)
http://www.airfirst.ch/b1/album_div.html (DIV version)
B. NAVIGATION
- 2 half sensitive zones on each picture.
- Click on the left/right image side to go up/down.
C. QUESTION (for DIV version)
To avoid the problem with pictures having different size (pic. #2 http://www.airfirst.ch/b1/PiCS/Pic002.JPG),
how to make the DIV box to fit its content instead of using absolute value like:
Code:
DIV.Box {position:relative;width:360Px;height:240Px;margin:10Px 0;}
PS: in my case, I use the image as background of a DIV
Thanks and regards.
Comment