In this paper we address a recent situation created by the explosive growth of web systems. For these reason we propose a framework to support adaptive elements in Web pages. Web pages can be accessed by different platforms with different browsers and through different devices such as laptops, tablets or cellphones. In particular we focus on adaptive menus for this different kind of devices or browsers to optimize the selection patterns and their implementations. We propose a framework using an Adaptive Constraint Programming technique to optimize the decision of developers. Constraint Programming is a programming paradigm able to find efficient resolution in optimization problems. In Constraint Programming a problem is defined in term of variables and constraints. The variables hold a domain and represent the unknowns of the problem, while the relations among them are modeled as constraints.