zelda_pinwheel
11-19-2007, 05:44 PM
Hello,
i have looked on google and forums and i seem to have come up with a bug no-one has thought of yet (it's my special talent).
i made a template for a site (design not mine) using a banner + nav in position:fixed because it was the only way to acheive the nice rollover effect without making a menu in images, and i prefer a menu in html text.
because of that, i had to make some conditional comments for ie6 and 7, particularly so that the "content" div would not place itself at the top of the screen (behind the banner).
now everything is working perfectly, the code is valid (html and css), EXCEPT that in the faq page there are named anchors and when you click on them they jump to the top of the screen (behind the banner).
since i already saw this with the content div, it was not a big problem, i just added a padding-top:200px to the "a" tag inside a new "faq" div i created for this purpose. in firefox, it was perfect in 30 seconds. in ie6, does not apply since it doesn't understand position:fixed and scrolls everything anyway.
but ie7 refuses to understand, although 1. this solution worked on the "content" div which had this identical problem, and 2. when you click "back to top" the top of the page appears in the right place, not behind the banner, and it is also a named anchor.
i have tried a padding-top, a margin-top, a line-height (you never know), i added a width to my "faq" div to be sure it had layout, i tried making a class for the links instead of styling the "a" tag directly, and many other things which i have since forgotten (i have been searching for hours now).
the job is rather urgent because the client wants to launch tonight (!) and we still need to flow in the real content, so any help is really appreciated.
the page is online here :
http://audrey.keszek.free.fr/dartmouth/wiselywed/html/faq.htm
thank you in advance for any help you can offer ! i really have no more ideas (other than just forget it and say that for anyone who is still using ie, a little unnecessary scrolling is the least of their problems...).
i have looked on google and forums and i seem to have come up with a bug no-one has thought of yet (it's my special talent).
i made a template for a site (design not mine) using a banner + nav in position:fixed because it was the only way to acheive the nice rollover effect without making a menu in images, and i prefer a menu in html text.
because of that, i had to make some conditional comments for ie6 and 7, particularly so that the "content" div would not place itself at the top of the screen (behind the banner).
now everything is working perfectly, the code is valid (html and css), EXCEPT that in the faq page there are named anchors and when you click on them they jump to the top of the screen (behind the banner).
since i already saw this with the content div, it was not a big problem, i just added a padding-top:200px to the "a" tag inside a new "faq" div i created for this purpose. in firefox, it was perfect in 30 seconds. in ie6, does not apply since it doesn't understand position:fixed and scrolls everything anyway.
but ie7 refuses to understand, although 1. this solution worked on the "content" div which had this identical problem, and 2. when you click "back to top" the top of the page appears in the right place, not behind the banner, and it is also a named anchor.
i have tried a padding-top, a margin-top, a line-height (you never know), i added a width to my "faq" div to be sure it had layout, i tried making a class for the links instead of styling the "a" tag directly, and many other things which i have since forgotten (i have been searching for hours now).
the job is rather urgent because the client wants to launch tonight (!) and we still need to flow in the real content, so any help is really appreciated.
the page is online here :
http://audrey.keszek.free.fr/dartmouth/wiselywed/html/faq.htm
thank you in advance for any help you can offer ! i really have no more ideas (other than just forget it and say that for anyone who is still using ie, a little unnecessary scrolling is the least of their problems...).