(CNN) - The outcome of an effort to ban gay marriage in California remained unclear early Wednesday since not all the votes had been counted.
Proposition Eight, which would eliminate the right of same-sex couples to marry in California, had the support of 52 percent of voters at 2:45 a.m. (5:45 a.m. ET), with 84 percent of precincts reporting.
Voters in Arizona and Florida approved bans on gay marriage Tuesday.
In California, voters weighed a gay marriage ban after the California Supreme Court ruled this year that such marriages were legal under the state's constitution.
The ballot initiative had the support of 4.6 million voters compared with 4.3 million who were opposed, according to preliminary results.
In Arizona, voters approved a measure Tuesday to amend the state constitution so that only a union between one man and one woman would be recognized as a marriage. Fifty-six percent of voters supported the measure - a reversal of direction from 2006, when a similar measure on the ballot failed.
A ban on gay marriage also passed in Florida, with support from 62 percent of the voters.
In California, first-time voters cast their ballots against the proposition by a 64 percent to 36 percent margin, according to exit polls. The rest of the electorate favored the amendment 52 percent to 48 percent.
Church attendance was a major factor in voting.
Californians who attend church weekly voted for Proposition Eight by a margin of 83 percent to 17 percent, according to exit polls. Those who attend church occasionally voted 40 percent in favor and 60 percent opposed. Californians who never attend church were 14 percent in favor and 86 percent
College graduates opposed Proposition Eight by a 57 percent to 43 percent margin. Those without a college degree favored it 53 percent to 47 percent.
African-Americans voted for the measure by a 69 percent to 31 percent
margin. However, 55 percent of white voters and 52 percent of Hispanics voted
against the proposition.
- Hal Quinley and CNN's Joe Von Kanel contributed to this report