Hyphens, En Dashes, Em Dashes

Q. Is word-for-word hyphenated? Is side-by-side hyphenated?

A. They are both hyphenated only if they precede the word that they modify: There were side-by-side mirrors. The mirrors were side by side.

[This answer relies on the 17th edition of CMOS (2017) unless otherwise noted.]