Julie Angarone wrote:
> http://web.princeton.edu/sites/Archaeology/rp/morgexhibit/morg1.html
> The page shows the way I want it to in Firefox & Opera, but not in
> IE. Can anyone make a suggestion? I've tried the overflow:hidden on
> the images's property (panelpic) and when it din't work I tried it
> on bkdrop....
Delete all those 'overflow: hidden'. They are not doing any good.
> The end result will be a bunch of different web pages with sometimes
> 3 pics, sometimes 4 or 5, sometimes only one.
Here is one way to make it work in IE/win.
I'm using some 'reverse engineering - next to floats'[1] to make things
line up a bit better across browser-land, and then add in a bit of
'removed floats'[2] to make IE behave as if it understands just a little
bit of 'standard CSS'[3[4] despite its 'hasLayout'5] bugs.
.text2 {
width:400px; /* trigger 'Layout'[5] */
border:2px solid #222222;
height:175px;
font-size:1.2em;
padding:10px;
padding-left:25px;
text-align:justify;
border:0px purple solid;
display: table; /* added for the good browsers[1] */
}
.panelpic {
margin-right:8px; /* changed for consistency */
margin-left:20px;
float:left;
margin-top: -25px;
margin-bottom: -150px; /* added for IE[2] */
clear:both;
border:0px solid white;
position: relative; /* added for IE[2] */
}
...note that there's no margin-left on '.text2'.
Negative 'margin-bottom' removes parts of the floats. Make sure that
negative margin is never set larger than the actual height of an image,
or else it may fail in most browsers because the entire image will be
seen as "removed".
Adding 'position: relative' will affect layering in IE, and make the
overshooting parts of those images visible.
Hope that's close enough.
regards
Georg
[1]http://www.gunlaug.no/contents/wd_example_01_01.html
[2]http://www.gunlaug.no/contents/wd_demo_float_03.html
[3]http://www.w3.org/TR/CSS21/visuren.html#q15
[4]http://www.w3.org/Style/CSS/Test/float-margin
[5]http://www.satzansatz.de/cssd/onhavinglayout.html
--
http://www.gunlaug.no
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7b2 testing hub -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/