<!DOCTYPE html> | |
<html> | |
<head> | |
<style> | |
#parent { | |
border: 1px solid blue; | |
width: 194px; | |
height: 94px; | |
display:table; | |
padding:2px; | |
} | |
</style> | |
</head> | |
<body> | |
<div id="parent"> | |
<p style="display:table-cell;border: 1px solid red;background-color: yellow;"></p> | |
<p style="display:table-cell;width:2px"></p> | |
<p style="display:table-cell;border: 1px solid red;"></p> | |
</div> | |
</body> | |
</html> |