<!DOCTYPE html> | |
<!-- | |
| "display: none" causes an element to not appear in the formatting structure | |
| (i.e., in visual media the element generates no boxes and has no effect | |
| on layout). | |
| https://www.w3.org/TR/CSS21/visuren.html#display-prop | |
--> | |
<html> | |
<head> | |
<style> | |
div { | |
background-color: #888888; | |
height: 100px; | |
width: 100px; | |
} | |
br { | |
display: none; | |
} | |
</style> | |
</head> | |
<body> | |
<div>Before<br>After</div> | |
</body> | |
</html> |