Quote:
Originally Posted by fabianmoreno01
Thanks @davidfor! There was no page_styles.css sheet so I created one but I get no result...
I'm adding two screenshots as attachments to this message. Is my coding correct and which of these two area should I put the code at?
|
First: try adding your margins to the BODY element. This tends to work better:
Code:
body {
margin-top:10pt;
margin-bottom:10pt;
}
Also, looking at your first picture, you used "page" instead of "@page". Then, you added a new CSS file (page_styles.css) but it was not linked to your HTML files.
Every time you create a new CSS file, you need to link it to your HTML file. You can tell the Editor to link it for you:
1) Select all the HTML files you want to apply these rules (margins-top and bottom)
2) Right click and choose "Link stylesheets"
3) Mark the stylesheets that should be applied
4) Uncheck the "Remove existing links to stylesheets", to avoid breaking things.