Darren Purse's first-half own goal was enough to give Leicester victory in a disappointing Championship clash at Ninian Park.
Leicester celebrate after Cardiff defender Darren Purse's own-goal
Purse's moment to forget came in the 27th minute when he volleyed an attempted clearance beyond goalkeeper Peter Enckelman from 20 yards.
But the Bluebirds could have no complaints as well-organised Leicester capitalised to hold on.
The victory ensured Leicester kept pace with fellow-strugglers Preston.
Cardiff manager Dave Jones:
"It was a poor goal to give away and Darren made the wrong decision, the wind had nothing to do with the goal it was just a mistake.
"The goal summed up our day as it even got worse after that. It was a very poor game.
"You get games like this sometimes but must keep trying to work your way out of it."
Leicester manager Ian Holloway:
"I have not seen such a competent performance from my side since I have been at the club.
"I asked my players before the game to be brave, stand up and be counted and I doubt whether you will find a better away performance than that.
"We have restricted a very good passing side to a few goal attempts and fully deserved our victory."
Cardiff: Enckelman, McNaughton, Capaldi, Purse, Johnson, Rae, Whittingham (Scimeca 80), McPhail (Thompson 56), Ramsey, Parry, Hasselbaink.
Subs Not Used: Oakes, Sinclair, Blake.
Leicester: Henderson, Kisnorbo, N'Gotty, Clapham, Stearman, Clemence, Hume (Wesolowski 90), Oakley, Hendrie (Mattock 90), Howard, Campbell (Hayles 90).
Subs Not Used: James Chambers, Fryatt.
Goals: Purse 27 og.
Ref: Mike Thorpe (Suffolk).