diff --git a/internal/epub/templates/epub_templates_style.css.tmpl b/internal/epub/templates/epub_templates_style.css.tmpl index abe97c2..0f6033d 100644 --- a/internal/epub/templates/epub_templates_style.css.tmpl +++ b/internal/epub/templates/epub_templates_style.css.tmpl @@ -6,8 +6,6 @@ body { color: #{{ .View.Color.Foreground }}; background: #{{ .View.Color.Background }}; - width: {{ .View.Width }}px; - height: {{ .View.Height }}px; display: block; margin: 0; padding: 0; diff --git a/internal/epub/templates/epub_templates_text.xhtml.tmpl b/internal/epub/templates/epub_templates_text.xhtml.tmpl index d918065..55aa8f2 100644 --- a/internal/epub/templates/epub_templates_text.xhtml.tmpl +++ b/internal/epub/templates/epub_templates_text.xhtml.tmpl @@ -8,8 +8,8 @@ <meta name="viewport" content="{{ .ViewPort }}"/> </head> <body> - <div style="top:{{ .Image.Top }}%"> - <img src="../{{ .Image.Path }}" alt="{{ .Title }}" width="{{ .Image.Width }}" height="{{ .Image.Height }}"/> + <div > + <img src="../{{ .Image.Path }}" alt="{{ .Title }}" width="{{ .Image.Width }}" height="{{ .Image.Height }}" /> </div> </body> </html> \ No newline at end of file