I have a well-functioning invoice. When I save the CSS and HTML files in the same folder, the printed invoice looks good.
Within the .html file, there are the following lines:
<link rel="stylesheet" href="https://s3.amazonaws.com/appforest_uf/f1527345073203x732458357233554200/pos.css" media="print">
<link rel="stylesheet" href="style.css" media="screen">
Everything works fine, but I need to embed the style.css file inside the HTML file because it contains a logo.png file that needs to be dynamically changed for each user.
I attempted the following:
Opened the style.css file, copied everything inside, and pasted it into the file within <style>
tags like this:
<link rel="stylesheet" href="https://s3.amazonaws.com/appforest_uf/f1527345073203x732458357233554200/pos.css" media="print">
<style>
/* CSS styles here */
</style>
However, when I print the page, it appears distorted.
- How it should look (when the .css file is in the same directory):
- How it appears when I integrate the CSS in the HTML file:
How can I properly integrate the .css in the HTML file?
Thank you in advance! Any assistance would be greatly appreciated.