You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First, thank you for your work on this project.
I'm trying to place an element into the header or footer. So far I can place it at top-left or bottom-left. However, if I place it at top-center, top-right etc., it will still be placed at the left. You can test this with the content below.
The text was updated successfully, but these errors were encountered:
bingtimren
changed the title
@top-right { content: element(ph); } does not work well
@top-right { content: element(); } does not work well
Sep 26, 2017
I looked at CSS3 Paged and I'm still not sure on what the correct behavior is. However, I can tell you that the code uses a table (in auto layout mode) to layout the margin boxes. Depending on your needs here are a couple of workarounds:
Make the running element text-align: right
Give the running element a margin-left with an absolute unit such as px. You'll also have to make it display: inline-block.
The first solution is better for a single line of text, the second for multiple lines of text that need left alignment.
Hi,
First, thank you for your work on this project.
I'm trying to place an element into the header or footer. So far I can place it at top-left or bottom-left. However, if I place it at top-center, top-right etc., it will still be placed at the left. You can test this with the content below.
Best regards,
Bing
The text was updated successfully, but these errors were encountered: