The invention relates to cosmetic compositions, and in particular hairstyling gels, containing in a cosmetically acceptable carrier (a) at least one fixing film-forming polymer chosen from branched block copolymers comprising, as principal monomers, at least one C.sub.1-20 alkyl acrylate and/or at least one N-mono- or N,N-di(C.sub.2-12 alkyl)(meth)acrylamide, and acrylic acid and/or methacrylic acid, (b) at least one thickening agent chosen from homopolymers and copolymers based on (meth)acrylic...