You can't in SF, NY, LA... other areas don't have this problem.
If your biggest desire is to have your housing not cost more than 60% of your paycheck, move to the suburbs of somewhere like Dallas. You'll be shocked at how many millennials can afford to have nice apartments or even buy homes without spending close to that, percentage-wise. Sure, they're doing it on a later schedule than the baby boomers, but in a lot of places that's a separate discussion of higher education requirements, student loan situations, etc, not terribly inflated housing costs.
But long-term-wealth-wise it might be better to land a top-tier job in an expensive city making $100K more a year in some combo of cash and equity and plowing that back into some of that expensive housing. Bit of a gamble, though. But if you aren't making more than (rough first guess, I feel on the too-low side with what I'm seeing rent-wise these days) $120K early in your career in one of the super-expensive cities, or have a clear path to well eclipsing that, you'd probably be much more comfortable making $70-100K in one of the cheaper, more southern, booming-yet-still-building-housing regions.