Merge structure and content templates into one.
Update setPosition() to remove dependency on padding and border info.