This link explains how the House of Representatives elects the president and vice president if nobody gets at least 270 electoral votes in the election. But what happens if the Congress fails to elect a president AND a vice president as well? In fact, I have a few more specific questions, explained in the following.
Say, if there are three presidential candidates, and none gets at least 26 votes from the House, then the elected VP will serve as the acting president as the link says; but this assumes existence of such an elected vice president, doesn't it? What if some senators don't like both candidates and none of the two gets at least 51 votes from the Senate, then what will happen if the deadlock is still not resolved after January 20?
Also, is there a time limit on resolving the deadlock for the president? If not Theoretically, can the vice president serve as the acting president until the next election?