Entry
Why is my css positioning not working with NN4?
Why is my css positioning not working with NN4?
Jul 31st, 2004 12:28
Cinley Rodick, Martin Honnen, http://www.generalforums.com , http://www.generalforums.com/yellow/
There are a couple of restrictions with css positioning in NN4. First
form my experience it is best to avoid inline styles i.e.
<DIV ID="layerName" STYLE="position: absolute;">...</DIV>
but use STYLE rules in the HEAD section instead i.e.
<STYLE>
#layerName { position: absolute; }
</STYLE>
...
<DIV ID="layerName">...</DIV>
as inline styles cause a lot of troubles with NN4 like not showing up
or style not applied as desired.
Secondly while with IE4/5 you can apply positioning to just about any
HTML element like for example an IMG element
<IMG STYLE="position: absolute; left: 10px" SRC="whatever.gif">
you are better off with NN4 if you apply positioning only to DIVs and
SPANs and wrap other elements inside the positioned DIV or SPAN.
And don't forget that positioned elements with NN4 have their own
document which causes troubles when mixed with FORMs as
http://www.faqts.com/knowledge-base/view.phtml/aid/1132/fid/128/lang/
shows.