document, 3px rule and update styles