I have 2 <div> which have the styling property display: table-cell. I need to add left and right margin to the <div> and adding margin: 0 10px does not work. And I cannot add padding: 0 10px because the <div> background was set to a color and the <div> have border too. So if I add padding the <div> looks like it keep on expanding. I need to separate the 2 <div> by some pixels. Any ideas?
<body style="background: #555;">
<div style="width: 100px; background: #fff; margin: 0 10px; display: table-cell; border: 1px solid #000">
</div>
<div style="background: #fff; margin: 0 10px; display: table-cell; border: 1px solid #000">
</div>
</body>
 
     
     
    