The background-clip property specifies the painting area of the background.
background-clip: border-box|padding-box|content-box|initial|inherit;
div { border: 10px dotted black; padding:35px; background: yellow; background-clip: content-box;}