Firefox & IE compatibility

i use dreamweaver 8 to create my websites and i was wondering how i could possibly make my sites compatible with both ie and firefox. as of now, all my sites only work the way i want them to on internet explorer, and they come out a little off on firefox. is there a source code or something i could possibly do to fix this problem? thanks a lot in advance