I posted a question about this several months ago, but the search function is so bad that I can't find it again.
I again have an image that is being overlapped by a table below it in Firefox. This happens whenever the following is true:
- The image file is floated right.
- The test it is floated around is shorter vertically than the image is.
The image then sticks down into and overlaps the table.
It does not happen in Internet Explorer.
Here is code that does this:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>UFO does not mean ET</title>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<style type="text/css">
.cenx {text-align: center;}
.ceni {clear: both;}
.bxfix {margin: 0; border: none; padding: 0;}
.wfl {width: 100%;}
.hi {margin: 24pt 0;}
.fixim {height: 100%; float: right;}
img {padding: 12px;}
body {background-color: #ffeecc; padding: 5%; font-family: sans-serif;}
table {background-color: #ffffff; vertical-align: top; border: solid 1px #000088;}
th {background-color: #eeffe0; vertical-align: top; border: solid 1px #000088; padding: 4px;}
td {background-color: #ffffff; vertical-align: top; border: solid 1px #000088; padding: 0 4px; font-size: smaller;}
</style>
</head>
<body>
<h1 class="cenx">"UFO" does not mean "ET"</h1>
<div class="hi wfl">
<img src="podium.jpg" alt="podium def" class="fixim" />
<p>People call many things by the wrong names. Here is a list of objects erroneously given the wrong
names by people who do not know better, and the correct names for them:</p>
</div>
<div class="hi wfl">
<table class="wfl" cellspacing="0">
<tr><th>THE CONFUSED WORD</th><th>WHAT IT REALLY MEANS</th><th>THE ERRONEOUS USE</th><th>THE CORRECT WORD TO USE</th></tr>
<tr><td>Podium</td><td>The box an orator stands on<br />(It elevates him higher.)</td><td>The stand in front of an orator</td><td>Lectern or pulpit</td></tr>
<tr><td>Theory</td><td>A proposal about how things happen<br />(Not proved.)</td><td>Something that is scientifically proved</td><td>Scientific fact</td></tr>
<tr><td>Transpire</td><td>To become known<br />(literally: leak out)</td><td>To occur (usually a series of events)</td><td>Happen</td></tr>
</table>
</div>
</body>
</html>