Save 36% for Black Friday! Learn more



50 Experience
0 Lessons Completed
0 Questions Solved


Posted in Align Images with Text

Hi I'm doing a report with ruby ​​prawn, the code below shows two images on video, the fact is that the two images are not aligned, so the image c is displayed much lower, my question is how do I align the two images at the same height?

Image of report: []



Prawn::Document.generate("rapportino.pdf") do
float { text "Il Tecnico:", :align => :left}
  text "Il Cliente:", :align => :right
  move_down 8
  image c,  :width=>130, :height=>70, :position => :left
  image c,  :width=>130, :height=>70,:position => :right
logo Created with Sketch.

Screencast tutorials to help you learn Ruby on Rails, Javascript, Hotwire, Turbo, Stimulus.js, PostgreSQL, MySQL, Ubuntu, and more. Icons by Icons8

© 2022 GoRails, LLC. All rights reserved.