On Tue, 19 Feb 2013, Larry Martell wrote:
Sorry for the stupid question, but I'm pulling my hair out with this.
I want to display a button and then next to it 3 checkboxes. No matter
what I do I cannot get all 4 elements to display in a line. I can get
the button and the first checkbox on the same line, but the other 2
checkboxes display below them. Here is my code:
<input style="float:left" type="submit" class="submit"
name="submit_preview" value="Generate Report"></input>
<div>
<input type="checkbox" id="meas_checkbox"
name="meas_checkbox" value="Meas" />Meas</div>
<div>
<input type="checkbox" id="pr_checkbox"
name="pr_checkbox" value="PR" />PR</div>
<div>
<input type="checkbox" id="ga_checkbox"
name="ga_checkbox" value="GA" />GA</div>
Why do you have all those DIVs?
<div>
<input style="float:left" type="submit" class="submit"
name="submit_preview" value="Generate Report"></input>
<input type="checkbox" id="meas_checkbox"
name="meas_checkbox" value="Meas" />Meas
<input type="checkbox" id="pr_checkbox"
name="pr_checkbox" value="PR" />PR
<input type="checkbox" id="ga_checkbox"
name="ga_checkbox" value="GA" />GA
</div>
--
Chris F.A. Johnson, <http://cfajohnson.com/>
Author:
Pro Bash Programming: Scripting the GNU/Linux Shell (2009, Apress)
Shell Scripting Recipes: A Problem-Solution Approach (2005, Apress)
______________________________________________________________________
css-discuss [css-d@lists.css-discuss.org]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/