Electric fireplaces are the most flexible, but properly designed gas or wood-burning fireplaces can also work with the right clearances.