In article
<c48e698a-7ba2-4d87-8827-7d1f033884db@p25g2000hsf.googlegroups.com>,
Amir Michail <amichail@gmail.comwrote:
Quote:
On Jul 16, 10:55*pm, dorayme <doraymeRidT...@optusnet.com.auwrote:
>
Quote:
Anyway, as I said, there are other ways and IE can be troublesome as it
fails to adhere to standards. Lets try another approach:
<http://netweaver.com.au/alt/left_right_middlePic2.html>
The problem is that the widths of the left and right divs are unknown
so I can't use this solution.
OK, you want a general solution where either left or right float being
wider gets the image dead centre, try this:
<http://netweaver.com.au/alt/left_right_middlePic3.html>
(There is a combined construction to hide stuff from both IE 6 and 7 in
a conditional, I have simply put repeated styles for both)
I use the rel positioning for IE because the pic holder div needs to be
given a 100% width to tell it to calculate middle from the sides of the
viewport (in effect, considering no margins on parents). But this then
drops the div because there is no room for the floats any more! Never
mind, we can up the images into line by pushing it with rel positioning.
There is likely a better solution, but I had fun making this.
--
dorayme