box-sizing:border-box;

Width remains what it was assigned and only the inner content area is compressed when we increase its padding and border size.
View Source Code & Article Free Online Web Development Tools