<!DOCTYPE html> | |
<html> | |
<head> | |
<style> | |
#shape-inside { | |
padding: 10px; | |
width: 180px; | |
height: 180px; | |
position: relative; | |
} | |
#border { | |
position: absolute; | |
top: 8px; | |
left: 8px; | |
width: 180px; | |
height: 180px; | |
border: 2px solid blue; | |
} | |
</style> | |
</head> | |
<body> | |
<div id="shape-inside"> | |
<div id="border"></div> | |
This text should be contained by the blue square. | |
</div> | |
Test that text set through javascript should layout within the shape inside. | |
</body> | |
</html> |