Gtk2HTML: Div margins, width and heights The following example renders a DIV element inside an HTML element: require 'requestor' eval Requestor.read('http://rorbuilder.info/r/ruby'){|x| x.require 'gtk2html' } s =<
EOF Gtk2HTML::Main.new s, irb: true Here's a screenshot of the Gtk2App rendering the above HTML. ![Screenshot of the Gtk2HTML application](http://www.jamesrobertson.eu/r/images/2015/nov/30/screenshot-of%20the-gtk2html-app.png) Notes: 1. When running the same HTML in a web page in Firefox, there is apparently no margin for the HTML element 2. The unit size of an em in pixels seems to change depending upon the font size. gtk2html div