BOULDER, Colo. (AP) _ City voters have approved an ordinance making it illegal to discriminate against homosexuals in employment, housing and accommodations.

The final vote on the proposal Tuesday was 7,916 in favor with 7,621 against, with all 22 precincts reporting. It had held just a 30-vote margin after 21 precincts reported and trailed early on.

The proposal amends the city's anti-discrimination law, an ordinance already crowded with prohibitions against discrimination on the basis of race, creed, color, sex, national status, religion, national origin, ancestry, disabilities, pregnancy and parenthood.

The Boulder City Council, recalling the donnybrook sparked by its passage 13 years ago of a similar ordinance, decided to put it in the voters' hands this time.

The council-passed ordinance in 1974 led to a well-organized opposition that rescinded the ordinance, recalled one City Council member and nearly dumped the mayor.

The ordinance proposed Tuesday drew little organized opposition.

Backers were led by a lesbian group called the Equal Protection Coalition.

The amendment is part of a national movement that has led to similar laws in as many as 50 cities and towns across the country, said Sue Larson, the group's public education coordinator.