css - divs with display: table ignore paddings of parent div -


Is there a way to get a display: Table cell, to keep your padrate's padding?

If I have a bootstrap device:

  & lt; Div class = "col-sm-5 defaultRowHeight" id = "row1" & gt; & Lt; Div style = "display: table" & gt; & Lt; Div class = "tableCellMiddle" & gt;  

The padding rule is ignored from the call coming from the boot-sms-SM-5. I want to use table cells so that I can easily V-Align.

Here's a bella

1 2 In my real world example at the closed source 2 boxes lose all their padding or margins but this My actual source does not mimic my problem.

Any thoughts?


Comments