[thelist] CSS positioning
Alastair Murdoch
alastair at cubeit.co.uk
Mon May 28 16:36:19 CDT 2001
set your page borders and margins to 0 using the line:
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
one is for netscape the other for IE (can't remember which is which)
That should solve problem 1.
the second problem can be solved with a little javascript:
<script language="JavaScript">
<!--
function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if
((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight;
onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH)
location.reload();
}
MM_reloadPage(true);
// -->
</script>
straight out of dreamweaver so it should work, just stick it in your head
tag. It's a netscape bug and the above script forces the browser to refresh
if the window is resized.
Hope it helps
Cheers
Alastair
-------------------------------
A l a s t a i r M u r d o c h
c o n s u l t a n t @ c u b e
[t:] 01292 27 00 99
[m:] 07974 323 551
[w:] www.cubeit.co.uk
-----Original Message-----
From: thelist-admin at lists.evolt.org
[mailto:thelist-admin at lists.evolt.org]On Behalf Of Brad
Sent: 28 May 2001 22:25
To: thelist at lists.evolt.org
Subject: [thelist] CSS positioning
Hi everyone,
I am having some troubles with positioning in CSS and making it work in both
IE and NN.
No matter what I do it works in IE. But Netscape seems to position
everything relative to some other point that I am not aware of.
I read through both Netscape's and Microsoft's CSS positioning pages and
can't find anything different about the way that they determine the origin
point for relative positioning. Maybe I missed something.
Here is a link.
http://www.beldamar.com/daktek/index3.html
Any help would be appreciated.
Another thing that is happening is that when I resize my browser window in
NN it screws up everything.(totally whacked) If I hit the reload button
everything comes back to normal.
Is this a common reaction in NN with DHTML?
Hope your all having a good holiday weekend.
Thanks,
Brad Miller
www.rapidfx.com
---------------------------------------
For unsubscribe and other options, including
the Tip Harvester and archive of TheList go to:
http://lists.evolt.org Workers of the Web, evolt !
More information about the thelist
mailing list