The Cowboys (4-5 overall, 2-2 Mountain West Conference) snapped a four-game losing streak against the Rams (5-4, 2-2) and beat Colorado State at home for the first time since 1991.
Bramlet completed 23 of 36 passes with one interception. His other TD pass was 34 yards to Josh Barge. He also had a 1-yard TD run.
The touchdown pass to Floyd, who caught seven passes for 143 yards, came at the 10:17 mark in the fourth quarter.
Derek Armah added 65 yards rushing and two TDs of 4 and 1 yards.
Colorado State outgained Wyoming 509 yards to 466, but the Rams lost two fumbles and were hurt by eight penalties for 126 yards. The loss dropped CSU out of a first place tie with Utah, and left the Rams in a difficult position to repeat as Mountain West Conference Champs.
The Cowboys had just the one interception and were penalized three times for 20 yards.
After Bramlet and Floyd put Wyoming ahead in the final quarter, the Rams drove down to the Wyoming 22 yard line, only to be pushed back by two holding penalties and a sack as a moderate snowfall obscured the field. A fourth down and 25 pass from Van Pelt was broken up by Wyoming's Chris Dixon in the end zone with 2:34 left.
The Rams' last drive with 53 seconds remaining ended at their 35 yard line. Fans rushed the field and took down one goal post for the second time this season.
The Rams, who led 21-14 at the half, were led by Bradlee Van Pelt, who passed for 205 yards and a touchdown and ran for another 140 yards and a score.