basic affix code
affix styles for iPad/tablet and static styles for smartphones