I am working on a help document for a scripting language what I want to do is to define a syntax statement so that the syntax can be written as
<div class="syntax">
startofstatement<ul><li>option1</li><li>option2</li><li>option3</li></ul>end of statement
and that when the line is displayed startofstatement and endofstatement appear level with each other with a “deep list” going down the page in the middle.
I have tired an inline-block on the UL but it still drops the list on to a new line and shows the endofstatement on a new line as well.
I know I should be able to do this, but don’t know how.
To be honest, a table has no place here. Tables aren’t to be used for layout purposes. It’s only to be used for tabular data. Misuse of the table element should be avoided :).
I was just saying wrap the startofstatement in ANY sort of element, and then float both the <ul> options, and the startofstatement element.
I would like to avoid a table as different statements have variable parameters and I would like to keep things as easy as possible so the programmers can easily enter the syntax.
Ryan were you suggesting wrapping each bit of the statement in a list and a list with in it.
Unformatted text can be a pain cross browser to get all on one line. I’d recommend either wrapping the text in an element, adn then floating both, or place the <ul> first in the HTML and float it.