diff --git a/basis/html/streams/streams.factor b/basis/html/streams/streams.factor
index cf413dde11..d78839d874 100644
--- a/basis/html/streams/streams.factor
+++ b/basis/html/streams/streams.factor
@@ -114,14 +114,15 @@ M: html-span-stream dispose
CONSTANT: pre-css "white-space: pre; font-family: monospace; "
: div-css-style ( style -- str )
+ [ span-css-style ]
[
{
{ page-color bg-css, }
{ border-color border-css, }
{ inset padding-css, }
} make-css
- ] [ wrap-margin of [ pre-css append ] unless ] bi
- "display: inline-block; " append ;
+ ] [ wrap-margin of [ pre-css append ] unless ] tri
+ "display: inline-block; " 3append ;
: div-tag ( xml style -- xml' )
div-css-style