I have made a label using HTML and CSS and previewed the file on my IDE but when I import the HTML and CSS files to the ERP and preview the print format it looks noticeably different. For one, the line spacing is not the same as my IDE preview. Does anyone know how I can stop the ERPNext from changing the look of my label?
You can use inspect element to identify ERPNext overrides:
You can then look at the problematic ERPNext rules and use either specific CSS rules or
!important to prevent override:
Note that the PDF might still look different, since the underlying PDF engine
wkhtmltopdf doesn’t support some CSS properties.
Thank you for the response! Do you know of a way I can just quickly remove all of the ERPNext overrides?
Frappe Framework seems to always include:
You can still remove these if you really want to, but I can’t think of a quick way.
Thank you for the quick responses! Do you know how I would go about removing these?