diff options
author | Daniel Calviño Sánchez <danxuliu@gmail.com> | 2018-08-03 21:55:20 +0300 |
---|---|---|
committer | Daniel Calviño Sánchez <danxuliu@gmail.com> | 2018-08-03 21:55:20 +0300 |
commit | fc4a395a504f3e09e687808c6ffa0e784f0fc4e0 (patch) | |
tree | b6c97ccd2f9764790f59f21b10d41bb59a05ec06 /css | |
parent | 028501e7c5eeb7fd1201ed86e080bc7fca95b6cb (diff) |
Inherit content padding to show the PDF frame below the header
The PDF frame is a direct child of "#content" that fills the whole
element. This is done using absolute positioning, so the containing box
for the PDF frame is the padding box of "#content". Thus, the same
padding used in "#content" to show it below the header must be used in
the PDF frame too (otherwise the PDF frame would appear behind the
header).
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
Diffstat (limited to 'css')
-rw-r--r-- | css/style.css | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/css/style.css b/css/style.css index c81722b..0091b65 100644 --- a/css/style.css +++ b/css/style.css @@ -6,3 +6,9 @@ display: block; } +#pdframe { + /* The PDF frame uses an absolute position and thus fills the whole padding + * box of the content, so the top padding is needed here too to not overlap + * the header. */ + padding-top: inherit; +} |