I am trying to create a document with two columns: the first one being code and the second being a description of that code.
The basic setup is this:
{section}
{column:width=50%}
{panel}
h1. Code column
{code}
// code goes here
{code}
{panel}
{column}
{column:width=50%}
{panel}
h1. Explanation column
_something useful goes here_
{panel}
{column}
{section}
The problem is that if the text in the {code} section is wider than the column, it will cause the column to take up size accordingly instead of keeping the block at 50%.
Has anyone else run into this issue and/or does anyone have a workaround?
The problem is that by default, table cells expand to the size of their contents.
This kind of thing should do the trick:
<style> table.sectionMacro { table-layout: fixed; } </style>
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.