summaryrefslogtreecommitdiff
path: root/simplyread.js
diff options
context:
space:
mode:
authorNick White <git@njw.me.uk>2011-06-26 18:13:26 +0100
committerNick White <git@njw.me.uk>2011-06-26 18:13:26 +0100
commit647be3ff00d9830f73c058ff3a713dff4c3f4b92 (patch)
treea37f658865edeb8d6b81aaec6fa1a92fce954663 /simplyread.js
parent909157e8c39874f2b980d93fc343471df7d3bd43 (diff)
Improve image formatting; thanks to Bruno Miguel for idea
Diffstat (limited to 'simplyread.js')
-rwxr-xr-xsimplyread.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/simplyread.js b/simplyread.js
index e7e9e27..5eb4614 100755
--- a/simplyread.js
+++ b/simplyread.js
@@ -60,7 +60,7 @@ function simplyread()
doc.body.innerHTML =
"<style type=\"text/css\"> p{margin:0ex auto;}" +
" p+p{text-indent:2em;} body {background-color:#cccccc}" +
- " img{float:right; clear:right; padding-left:1em;}" +
+ " img{display:block; max-width: 32em; padding:1em; margin:auto;}" +
" h1,h2,h3,h4 {font-weight:normal}</style>" +
"<div style=\"width:34em; padding:8em; padding-top:2em;" +
" background-color:white; margin:auto; line-height:1.4;" +