Forum Moderators: not2easy

Message Too Old, No Replies

Static next to dynamic DIV

This is probably kids stuff...

         

CNibbana

3:58 am on Apr 10, 2004 (gmt 0)

10+ Year Member



I'm trying to put two DIVs side-by-side, one on the left 160px wide static and one on the right 100% wide dynamic so that the dynamic DIV content will adjust to the browser width.

The problem I'm having is the static DIV is 160px too far to the right (ie6) and you have to use horizontal scrollbars. I've tried using right-margin: -160px to offset the difference but it doesn't work.

Is there a way to make this work that is compatible with most browsers? TIA

MWpro

6:51 am on Apr 10, 2004 (gmt 0)

10+ Year Member



What method are you using to line them up? Floating or absolute positioning? Maybe post some code too so we can see exactly what your problem is.