[OpenLayers-Users] Way to detect if layer is done loading?
Marc Jansen
jansen.marc at gmx.de
Wed Oct 17 19:19:56 EDT 2007
Hi list.
I couldn't follow the whole thread, but I would strongly suggest *not*
to use tables for visual effects.
The desired effect might be accomplished using absolute positionin (as
suggested before) or via:
/** CSS **/
#outer {
text-align: center;
position: absolute;
top: 50%;
left: 0px;
width: 100%;
height: 100%px;
overflow: visible;
visibility: visible;
display: block;
background-color: #ccc;
}
#inner {
margin-left: -125px;
position: absolute;
top: -125px;
left: 50%;
width: 250px;
height: 250px;
background-color: yellow;
}
<!-- markup -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<title>centered</title>
</head>
<body>
<div id="outer">
<div id="inner"></div>
</div>
</body>
</html>
I know that this is pretty much of code for a smple effect... but
perhaps it helps.
-- Marc
Erik Uzureau schrieb:
[snip]
> I've had some moderate success using tables, soething like:
>
> <table style="width:100%"><tr><td style="text-align:center">
> <img id="loadingImage" ...>
> </td></tr></table>
>
[/snip]
More information about the Users
mailing list