Check also stylesheet position before setting container to relative position.
Fixes #119
Merge pull request #120 from medihack/parent_relative

Improved check before setting container to relative position. Fixes #119