D
Dave Saville
I am trying to do a questionnaire type page. What I want is several
lines.
Each line is a question followed by a variable number of radio buttons.
It will be cgi generated.
Now this is easy if I (mis)use a table, but how do I do it with style
sheets?
I want the first radio button of each line to be aligned vertically but
I can only get them all over the place.
<style type="text/css" media="all">
#container, [nul]{display:table;width:100%;}
#left,
[nul]{display:table-cell;vertical-align:baseline;padding:1em;width:66%;}
#right,
[nul]{display:table-cell;vertical-align:baseline;padding:1em;width:33%;}
</style>
And then
<div id=container>
<div id=left>Question</div><div id=right>radios</div></div>
Does not align vertically, as if it is ignoring the width, and each
line has to be a div id=container. What it appears to be doing is
changing the width depending on how the question wraps if wider than
the width. Sorry but I am not in a position to post a URL yet.
There has got to be an easier way to do this - no wonder people use
tables for layout, it's so much easier
TIA
Regards
Dave Saville
NB switch saville for nospam in address
lines.
Each line is a question followed by a variable number of radio buttons.
It will be cgi generated.
Now this is easy if I (mis)use a table, but how do I do it with style
sheets?
I want the first radio button of each line to be aligned vertically but
I can only get them all over the place.
<style type="text/css" media="all">
#container, [nul]{display:table;width:100%;}
#left,
[nul]{display:table-cell;vertical-align:baseline;padding:1em;width:66%;}
#right,
[nul]{display:table-cell;vertical-align:baseline;padding:1em;width:33%;}
</style>
And then
<div id=container>
<div id=left>Question</div><div id=right>radios</div></div>
Does not align vertically, as if it is ignoring the width, and each
line has to be a div id=container. What it appears to be doing is
changing the width depending on how the question wraps if wider than
the width. Sorry but I am not in a position to post a URL yet.
There has got to be an easier way to do this - no wonder people use
tables for layout, it's so much easier
TIA
Regards
Dave Saville
NB switch saville for nospam in address