before/after instead of offset and css fixes