Content margins not what they are defined in CSS

This forum is for all Flare issues related to PDF, eBook, Microsoft Word, Adobe FrameMaker, XPS, and XHTML book targets.
Post Reply
chuck_agari
Sr. Propeller Head
Posts: 225
Joined: Wed May 30, 2018 2:40 pm

Content margins not what they are defined in CSS

Post by chuck_agari »

I'm confused. I have a very explicit margin set in my CSS for print output. Yet the actual output seems to do what it wants.

This is the CSS:
print_css.PNG
And this is what I see in the Print Preview mode (also what prints out):
print_preview.PNG
IOW, I clearly specified 0.5in left margin, yet Flare makes it 1.0in. Why,, Flare, why?
You do not have the required permissions to view the files attached to this post.
AlexFox
Sr. Propeller Head
Posts: 149
Joined: Thu Oct 19, 2017 1:56 am

Re: Content margins not what they are defined in CSS

Post by AlexFox »

You should be able to use the style inspector in Flare to see what it's inheriting and from where. Also you misspelled 'hyphens' :)
ChoccieMuffin
Senior Propellus Maximus
Posts: 2630
Joined: Wed Apr 14, 2010 8:01 am
Location: Surrey, UK

Re: Content margins not what they are defined in CSS

Post by ChoccieMuffin »

Have you got a "padding" setting somewhere in the default medium? Padding sometimes sneaks in there and is added to the margin setting. Try specifying "padding: 0;" in that bit of the stylesheet you've shown us and see what happens. Maybe a bit rough and ready, but it might get you started.
Started as a newbie with Flare 6.1, now using Flare 2023.
Report bugs at http://www.madcapsoftware.com/bugs/submit.aspx.
Request features at https://www.madcapsoftware.com/feedback ... quest.aspx
chuck_agari
Sr. Propeller Head
Posts: 225
Joined: Wed May 30, 2018 2:40 pm

Re: Content margins not what they are defined in CSS

Post by chuck_agari »

ChoccieMuffin wrote:Have you got a "padding" setting somewhere in the default medium? Padding sometimes sneaks in there and is added to the margin setting. Try specifying "padding: 0;" in that bit of the stylesheet you've shown us and see what happens. Maybe a bit rough and ready, but it might get you started.
I think I found it. I had a 0.5in. margin in the body element. It looks like when I defined a 0.5in margin in the p element, it added to the margin defined in the body element.
ChoccieMuffin
Senior Propellus Maximus
Posts: 2630
Joined: Wed Apr 14, 2010 8:01 am
Location: Surrey, UK

Re: Content margins not what they are defined in CSS

Post by ChoccieMuffin »

Glad you found it. I often get tangled with padding and margin, so it's worth keeping in mind the Box model in Flare. This help topic has a diagram of the order of content, padding, border and margin - I have drawn it onto a PostIt note and stuck it to my wall!

http://help.madcapsoftware.com/flare201 ... Images.htm
Started as a newbie with Flare 6.1, now using Flare 2023.
Report bugs at http://www.madcapsoftware.com/bugs/submit.aspx.
Request features at https://www.madcapsoftware.com/feedback ... quest.aspx
Post Reply