I'm attempting to insert and position new DIVs before and after arbitrary 'target' elements on a page with jQuery (.before and .after) In some cases, after the DOM insertion, the browser will render the new DIV without respecting the target element's padding, other times it will? I realize there's other issues that can complicate this (positioning, margins, etc) but I'm not sure why there's a difference? Would it have to do with the target element type or some constraint on the common parent?
Thanx, Chris