I have an element with a 70% width, and it is floating beside an element with 30% width, but when I add 25px of padding it expands the element and breaks the fo
25px
When you use the border-box model, the padding is included in the box size. See here for details.
border-box
padding example Stuff More Stuff