I know the "right" way to do this is via CSS styles/rules, but I could not get them to work in this instance (see here if curious), and so I bit the bullet and bruteforced it by adding inline styles to do what I need (adding margin to the top and an hr element that is plainly visible).
I'm accomplishing those two objectives with this html:
<body style='margin-top:40;margin-left:60;margin-right:60;'>
. . .
<hr style='border:0;height:1;background:#333;color:navy;' />
I also need to draw a line around the used part of the page to make it stand out. This CSS class works in a page in a different project:
.body-content {
-webkit-box-shadow: -1px 0 5px 0 rgba(0, 0, 0, .25);
box-shadow: -1px 0 5px 0 rgba(0, 0, 0, .5);
padding-left: 1px;
padding-right: 1px;
padding-bottom: 15px;
}
...so I tried to add it inline like so (appending it to the existing margin values)):
builder.Append("<body style='margin-top:60;margin-left:60;margin-right:60; -webkit-box-shadow: -1px 0 5px 0 rgba(0, 0, 0, .25);box-shadow: -1px 0 5px 0 rgba(0, 0, 0, .5);padding-left: 1px;padding-right: 1px;padding-bottom: 15px;'>");
...but it does not generate the box around the used edges of the page.
Why not, and how can I get the shadowed box to display using inline styles?