Menu
Hello, all.
I am trying to get four DIV layers that use “float:” for positioning to show the background color of the table cell they reside in. It works great in IE6; but FF2 only shows white. If I set “background-color” in the DIV’s, IE6 works with that, too, but FF2 only places the correct color within the DIV’s themselves, and leaves white gaps between them.
Is there a workaround for this?
Thanks,
^_^
PS. I originally tried using a background image, but apparently it’s not possible to stretch the image without chopping it up and using even more DIV’s.
Seeing your code is required. :rolleyes:[/QUOTE]
<i>
</i>
<div id="highlight1Layer" style="display:table-row; width:333px; max-width:333px; min-height:133px; height:expression('133px'); float:left; clear:left; cursor:pointer; text-align:left; vertical-align:top; padding:0px; background:inherit;"
onClick="document.location='http://www.cpwr.org/index.cfm?n=8&sn=1';"
onMouseOver="return overlib('Click Here To Learn More..', FGCOLOR, '#FFFFFF', HEIGHT, 14, BELOW);"
onMouseOut="return nd();">
<div class="fiHeadline" style="padding:5px; padding-bottom:0px; display:table-cell; clear:both;">About the 2009 Parliament</div>
<div class="fiContent" style="padding:5px; display:table-cell; float:left;">Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</div></div>
<div id="highlight2Layer" style="display:table-row; width:333px; max-width:333px; min-height:133px; height:expression('133px'); float:right; clear:right; cursor:pointer; text-align:left; vertical-align:top; padding:0px; background:inherit;"
onClick="document.location='http://www.cpwr.org/index.cfm?n=2&sn=1';"
onMouseOver="return overlib('Click Here To Learn More..', FGCOLOR, '#FFFFFF', HEIGHT, 14, BELOW);"
onMouseOut="return nd();">
<div class="fiHeadline" style="padding:5px; padding-bottom:0px; display:table-cell; clear:both;">From the archives</div>
<div class="fiContent" style="padding:5px; display:table-cell; float:left;">Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old. Richard McClintock, a Latin professor at Hampden-Sydney College in Virginia, looked up one of the more obscure Latin words, consectetur, from a Lorem Ipsum passage, and going through the cites of the word in classical literature, discovered the undoubtable source. Lorem Ipsum comes from sections 1.10.32 and 1.10.33 of "de Finibus Bonorum et Malorum" (The Extremes of Good and Evil) by Cicero, written in 45 BC. This book is a treatise on the theory of ethics, very popular during the Renaissance. The first line of Lorem Ipsum, "Lorem ipsum dolor sit amet..", comes from a line in section 1.10.32.</div></div>
<div id="highlight3Layer" style="display:table-row; width:333px; max-width:333px; min-height:133px; height:expression('133px'); float:right; clear:right; cursor:pointer; text-align:left; vertical-align:top; padding:0px; background:inherit;"
onClick="document.location='http://www.cpwr.org/index.cfm?n=3&sn=3';"
onMouseOver="return overlib('Click Here To Learn More..', FGCOLOR, '#FFFFFF', HEIGHT, 14, BELOW);"
onMouseOut="return nd();">
<div class="fiHeadline" style="padding:5px; padding-bottom:0px; display:table-cell; clear:both;">Featured Item</div>
<div class="fiContent" style="padding:5px; display:table-cell; float:left;">It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters, as opposed to using 'Content here, content here', making it look like readable English. Many desktop publishing packages and web page editors now use Lorem Ipsum as their default model text, and a search for 'lorem ipsum' will uncover many web sites still in their infancy. Various versions have evolved over the years, sometimes by accident, sometimes on purpose (injected humour and the like).</div></div>
<div id="highlight4Layer" style="display:table-row; width:333px; max-width:333px; min-height:133px; height:expression('133px'); float:left; clear:left; cursor:pointer; text-align:left; vertical-align:top; padding:0px; background:inherit;"
onClick="document.location='http://www.cpwr.org/index.cfm?n=5&sn=4';"
onMouseOver="return overlib('Click Here To Learn More..', FGCOLOR, '#FFFFFF', HEIGHT, 14, BELOW);"
onMouseOut="return nd();">
<div class="fiHeadline" style="padding:5px; padding-bottom:0px; display:table-cell; clear:both;">Featured Item</div>
<div class="fiContent" style="padding:5px; display:table-cell; float:left;">There are many variations of passages of Lorem Ipsum available, but the majority have suffered alteration in some form, by injected humour, or randomised words which don't look even slightly believable. If you are going to use a passage of Lorem Ipsum, you need to be sure there isn't anything embarrassing hidden in the middle of text. All the Lorem Ipsum generators on the Internet tend to repeat predefined chunks as necessary, making this the first true generator on the Internet. It uses a dictionary of over 200 Latin words, combined with a handful of model sentence structures, to generate Lorem Ipsum which looks reasonable. The generated Lorem Ipsum is therefore always free from repetition, injected humour, or non-characteristic words etc.</div></div>
wow.. ? -I'm lost.
I would bet that whole thing could be much easier created using non-TABLE layout (you say that this is inside of a TD), and even then, simpler.
I am not seeing the effect I think you are after, as every time I hover over either of the four 'sections' of text, two concurrent javascript error dialogue boxes 'pop up' and ask to be ignored or cancelled.
What is supposed to be happening here? I think that you want certain text to be visible, and on-hover, certain other text to replace the first. -Am I close?[/QUOTE]
well for one, your
expression()
in the CSS will only work in IE and I'm really not sure why you are using that. It could be killing FF[/QUOTE]
I hate to pick a the code but why this?
display:table-row
and why
background:inherit[/QUOTE]
0.1.9 — BETA 5.6