Do this with an alternating class instead. In fact, I believe bootstrap has a built in class for this exact scenario. Regardless, inline styling should always be last resort, and old school html attributes are depreciated for css.