As I am trying to learn CSS, I am looking at lots of peoples code, and see both px and % used for margins. When I experiment with CSS myself, I sometimes end up using both px and % for my margins as well....
Is this bad form to have them both mixed in your CSS?
Is there a general rule or preferance on using px or % when defining margins?

Thanks for your input