Skip to content

Positioning a text in front of a image #7

Answered by joaofx
joaofx asked this question in Q&A
Discussion options

You must be logged in to vote

Okay! I think I figured out here. Just need to use negative padding:

container.Stack(stack =>
{
  stack.Element()
      .Debug()
      .Image(headerImage);
  
  stack.Element()
      .Debug()
      .PaddingTop(-130)
      .PaddingLeft(80)
      .Stack(x =>
  {
      x.Element().Text("Line 1");
      x.Element().Text("Line 2");
      x.Element().Text("Line 3");
  }); 
});

Thanks!

Replies: 2 comments 8 replies

Comment options

You must be logged in to vote
2 replies
@chiranstha
Comment options

@MarcinZiabek
Comment options

Answer selected by joaofx
Comment options

You must be logged in to vote
6 replies
@MarcinZiabek
Comment options

@joaofx
Comment options

@MarcinZiabek
Comment options

@joaofx
Comment options

@MarcinZiabek
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants