If you see this, something is wrong
First published on Friday, Nov 29, 2024 and last modified on Sunday, Feb 22, 2026 by François Chaplais.
In LaTeX2Web, the minipage environment have no effect because it relies on fixed dimensions.
However, if you wish to stack boxes of content next to each other, this can be achieved by using a LaTeX2Web specific commend as a replacement. The following LaTeX code
\begin{grid}
\begin{gridItem}
content1
\end{gridItem}
\begin{gridItem}
content2
\end{gridItem}
\end{grid}
will create two boxes with the respective LaTeX contents content1 and content2 inside. These blocks will "wrap" if the width of the device is too narrow to display them together; else they will be next to each other horizontally.
The \begin{grid} command has two optional parameters as follows: \begin{grid}[numberOfBoxes][verticalAlignment].
the numberOfBoxes argument is an integer which roughly corresponds to the maximum of boxes on a row (this is how it works for images; tables are different). In detail, it gives the maximum width of each box. The default is 2. Tables are different from images because their content determines their width. If you specify a number of boxes set to 0, the gridItems full be full-width. If you set it you 1, the maximum width will be of 1200 pixels.
verticalAlignment states how, within a row, boxes should be aligned vertically: top, bottom or center. The default is center.
The content of the grid items can be just about anything except
sections
theorems
You can put a grid inside a theorem, but not a theorem inside a grid.