There seems to be some cooling off in the housing market. But that doesn't mean homes are becoming more affordable everywhere.

According to RealtyHop's housing affordability index, many cities in the U.S. are still difficult to afford. Out of the 100 cities in the index, the average American would have to dedicate at least 40% of their income to own a home in 42 of them.