modifying background color depends on width