Skip to content

Is it possible to anchor an image to a page? #446

Answered by ggrossetie
matthesrieke asked this question in Q&A
Discussion options

You must be logged in to vote

Hello @matthesrieke

first of all thanks for a great software. I was looking for something which allows more complex and custom styling with AsciiDoc for a longer time.

Thanks 😊

I have a question regarding individual page layouting. My document and @page CSS is defined as below. Is there a possibility to include an image that anchors on a single page (i.e. not a running header, more like a section teaser), in particular with no margin? See example below.

One way to do it, is to add a header on a particular page using named page: https://www.w3.org/TR/css-page-3/#using-named-pages

Page 1

[#page-2]
Page 2 Content
#page-2 {
  page: teaser
}

@page {
  margin: 2cm 2cm;
}

@page teaser {
  

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by matthesrieke
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants