DIV Positioning and Mac IE
I’m positioning a DIV on a page. It looks perfect in Windows (NS/IE) and works all right on Macintosh with Netscape, but in IE on Mac it doesn’t seem to have any vertical positioning what so ever. I’m using pixel based positioning because there’s a 200px image right above where I want the DIV to sit.
Any ideas on a way to specify the position that will work in Netscape and IE on both Mac and Windows? It’s important that the DIV open in the right place, as it’s the navigation.
Thanks,
Vincent Puglia posted this at 05:56 — 10th August 2000.
They have: 634 posts
Joined: Dec 1999
Hi adam,
I don't have a mac, so take everything I say with a grain of salt. (no idea what that adage means, only know how to use it
1) ie for mac is supposed to have a lot of problems (but you probably already know that)
2) try putting the photo in a table and the div directly beneath it (relative positioning, no absolute pixels). The table should force the div to be where you want, even if the page is resized.
....
....
Vinny
Where the world once stood
the blades of grass cut me still
Anonymous posted this at 18:26 — 10th August 2000.
They have: 5,633 posts
Joined: Jan 1970
Vinny,
Thanks. I’ve already tried relative positioning (should have said that before). It works in IE on both Windows and Macintosh however in Netscape the DIV loads at the bottom rather then snugly up against the top image.
position:relative; top:0; left:10; height:800; width:170; visibility:hidden;
Cross-browser cross-OS DHTML is a blast
Vincent Puglia posted this at 20:14 — 10th August 2000.
They have: 634 posts
Joined: Dec 1999
Hi adam,
Did you try the table with the relative positioning?
Only other advice I can give is to try http:www.msdn.microsoft/workshop There should be some sort of workaround in their knowledge base.
And if you think cross-OS is a hassle, wait until you try searching their knowledge base
vinny
Where the world once stood
the blades of grass cut me still
Anonymous posted this at 07:05 — 12th August 2000.
They have: 5,633 posts
Joined: Jan 1970
I ended up using Java Script to specify two style sheets, one for Internet Explorer and one for Netscape. That way I was able to use different measuring methods for the browsers. It works now cross-OS and cross-browser
Thanks...
Vincent Puglia posted this at 07:48 — 13th August 2000.
They have: 634 posts
Joined: Dec 1999
Hi Adam,
Love those crossWhatever solutions
Vinny
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.