View Single Post
Old 09-21-2025, 05:02 PM   #1
Valjean
Junior Member
Valjean began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Sep 2025
Device: none
Viewer Styles CSS margin on body ignored

Hello,

First of all, thanks for the great application!!
I am trying to create a "custom" layout by using the Styles configuration.
In the previous versions this seemed to work, but in the newer versions it is not working anymore.
I am trying to add more margin on top and on the bottom, but I am not sure how to do that. Also the images seem to not be aligned correctly.

here is my css:

p, h1, h2, h3, h4, h5{
font-family: Bookerly !important;
margin-left: 6em !important;
margin-right: 6em !important;
line-height: 1.8 !important;
}


body {
height: 85% !important; <- does nothing
margin-top: 40px !important;
margin-bottom: 40px !important;
text-align: center !important;
font-size: 24px !important;
}

div{
margin-left: 1.25em !important;
}

* {
color: rgb(0,0,0) !important;
}

Click image for larger version

Name:	problem.jpg
Views:	30
Size:	443.6 KB
ID:	218215

Thanks for your help
Valjean is offline   Reply With Quote