View Single Post
Old 01-20-2022, 09:20 AM   #4
thiago.eec
Wizard
thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.
 
Posts: 1,243
Karma: 1419583
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite, Kindle Oasis
Quote:
Originally Posted by fabianmoreno01 View Post
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.

Last edited by thiago.eec; 01-20-2022 at 09:35 AM.
thiago.eec is online now   Reply With Quote