Forum Moderators: not2easy
#div1 {
float:left;
width: 500px;
}
#div2 {
margin-left: 510px;
}
Either that or use absolute positioning.
However, this won't work in NN4 because I don't think NN4 understands float (or any real CSS apart from fonts). But without the CSS the divs will appear one after the other - which is probably 'good enough' for NN4 users (remember x-browser doesn't mean it has to look identical in all browsers - it just has to be usable!).
If thats not an acceptable solution then you'll probably have to use tables because NN4 is seven years old and basically doesn't support CSS.
However, you can use this to your advantage, since:
What you do is to first style your page in a basic fashion that wil be understood by NN4 - ie don't do any floating. Tese rules go into one style sheet that can be read by everything. Then you create another style sheet that floats your divs. Include that in your page using @import (or one of the other variants that hide CSS from NN4).
You then not only have a page whose content can be read by the few NN4 users who visit it, but you've also turned NN4 into a debugging tool. If you have any problems with the floating, you can always check that you've got the basics right by looking at your page using NN4. (I used this technique recently, and it saved me a lot of time.)