I have this doctype(cannot change it):
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
I have this script:
<script>
function showd(element) {
var el = document.getElementById(element);
el.style.display = "block";
}
function closeContentD(element) {
var el = document.getElementById(element);
el.style.display = "none";
}
</script>
this css for the DIV that has to appear when I click on link:
.div_funnel{position:relative;
visibility:visible;
width:340px;
height:320px;
top:70;left:200;
z-index:100;
}
when I call for the DIV <a href="#" onclick="showd('funnelDIV')">LINK</a>)
the position ofthe div is not according to its css (top:70;left:200
this is due to doctype.
How can I fix it without changing the doctype?




Reply With Quote

Bookmarks