Hello again!
I am having problems positioning the level 2 dropdown menu in Safari. It works great in:
- IE 6 and 7, Windows
- Firefox, Mac and Windows
I have read the manual Dynamicweb Menues (TM-2055), but there are no help regarding this.
Thanks in advance...
/KW
Developer forum
E-mail notifications
Safari dropdown problem
Posted on 13/02/2007 10:52:52
Replies
Posted on 14/02/2007 11:33:55
kw@pravda.dk wrote:
Hello again!
I am having problems positioning the level 2 dropdown menu in Safari. It works great in:
- IE 6 and 7, Windows
- Firefox, Mac and Windows
I have read the manual Dynamicweb Menues (TM-2055), but there are no help regarding this.
Thanks in advance...
/KW
Hi Kristian
Do you have a link for your problem ?
// Sebastian
Posted on 15/02/2007 09:25:39
Here U go: http://cryptomathic.net.dynamicweb.dk
Posted on 15/02/2007 09:47:13
kw@pravda.dk wrote:
Here U go: http://cryptomathic.net.dynamicweb.dk
What is the problem ... ?
Posted on 15/02/2007 10:04:29
Har du tjekket den i Safari på OS X? Det er dét, der er problemet! Dropdown'en er forskudt i forhold til hvis den bliver vist i Firefox eller IE.
Posted on 15/02/2007 10:46:16
kw@pravda.dk wrote:
The problem exists in Safari on OSX
Hi Kristian
I've fixed it the ugly way ...
In your front template i do some browser detection and then I set the TopPosCorrection according to the browser.
I've also removed the empty TD and replaced it with a margin-top.
// Sebastian
Posted on 15/02/2007 11:46:34
Works perfect! Thanks a million!
Posted on 16/02/2007 17:58:37
Will the correction not affect all other browsers making them offset the menu?
Could you explain a little more in detail since this seems to be a general problem in Safari.
Could you explain a little more in detail since this seems to be a general problem in Safari.
Posted on 19/02/2007 10:58:02
soegaard-co wrote:
Will the correction not affect all other browsers making them offset the menu?
Could you explain a little more in detail since this seems to be a general problem in Safari.
Hi Per
I position the menus as good as I can with the 3 ID's in the page template. This is crucial.
And then in this case I had to do some browser detection to correct the different vertical positioning.
Like this:
if (agt.indexOf("safari") != -1) {
TopPosCorrection = 114;
} else if (agt.indexOf("msie 6.0") != -1) {
TopPosCorrection = 44;
} else {
TopPosCorrection = 84;
}
// Sebastian
Posted on 19/02/2007 10:59:38
Sorry ... the script should look like this:
if (agt.indexOf("safari") != -1) {
TopPosCorrection = 114;
} else if (agt.indexOf("msie 7.0") != -1) {
TopPosCorrection = 44;
} else if (agt.indexOf("msie 6.0") != -1) {
TopPosCorrection = 44;
} else {
TopPosCorrection = 84;
}
if (agt.indexOf("safari") != -1) {
TopPosCorrection = 114;
} else if (agt.indexOf("msie 7.0") != -1) {
TopPosCorrection = 44;
} else if (agt.indexOf("msie 6.0") != -1) {
TopPosCorrection = 44;
} else {
TopPosCorrection = 84;
}
You must be logged in to post in the forum