newsdev / ai2html

A script for Adobe Illustrator that converts your Illustrator artwork into an html page.
http://ai2html.org
Other
897 stars 145 forks source link

Apply centering code to wrapper and artboards #121

Closed kevinschaul closed 5 years ago

kevinschaul commented 5 years ago

Fixes #119

Without this code (or another solution) using both settings.max_width and settings.center_html_output causes the div that wraps all artboards to have a max-width but no centering code. That results in e.g. a 600px artboard not being centered when embedded in a space wider than 600px.

mbloch commented 5 years ago

Thanks for fixing this, @kevinschaul :)