How to add margin or padding on a div inside a bootstrap layout

Hi All,
I’m puzzled about adding margin or padding in an element like div or image inside a bootstrap layout. When I add margin or padding to an element, specially in horizontal (margin/padding left or right) the page width offset the screen. Any ideia of a better approach?