css - How to make these two inline? -


I am editing another's code, an existing form and a CSS file, what have I done that Tag in the form "", and I want to select inline.

Each selection has a label, so I put them into a div, so I have 5 divisions. I want to put the first line in the line and the last 2 in the second row. . I was working for hours to work on a CSS file, but still failed.

Now the problem is that I can not put s in the same line, each one has a different line, so I now have 5 rows ... but I just need 2 rows.

Please help me on that, I'm not quite familiar with CSS.

  & lt; Html & gt; & Lt; Link rel = "stylesheet" href = "css / mrbs.css.php" type = "text / css" & gt; & Lt; Link rel = "stylesheet" media = "print" href = "css / mrbs-print.css.php" type = "text / css" & gt; & Lt; Form id = "add_room" class = "form_admin" action = "addystem.php" method = "post" & gt; & Lt; Fieldset & gt; & Lt; Legend & gt; Add system & lt; / Legend & gt; & Lt; Div id = "sdw-div" style = "white-space: aboper; display: inline" & gt; & Lt; Label = "sdw" & gt; Sdw: & lt; / Labels & gt; & Lt; Select ID = "sdw" name = "sdw" style = "display: inline" & gt; & Lt; Option selected = "selected" value = "0" & ​​gt; 0 & lt; / Options & gt; & Lt; Option value = "1" & gt; 1 & lt; / Options & gt; & Lt; Option value = "2" & gt; 2 & lt; / Options & gt; & Lt; Option value = "3" & gt; 3 & lt; / Options & gt; & Lt; Option value = "4" & gt; 4 & lt; / Options & gt; & Lt; / Select & gt; & Lt; / Div & gt; & Lt; Div id = "etl-div" style = "white-space: aboper; display: inline" & gt; & Lt; Label = "etl" & gt; Etl: & lt; / Label & gt; & Lt; Select ID = "etl" style = "display: inline" name = "atl" & gt; & Lt; Option selected = "selected" value = "0" & ​​gt; 0 & lt; / Options & gt; & Lt; Option value = "1" & gt; 1 & lt; / Options & gt; & Lt; Option value = "2" & gt; 2 & lt; / Options & gt; & Lt; Option value = "3" & gt; 3 & lt; / Options & gt; & Lt; Option value = "4" & gt; 4 & lt; / Options & gt; & Lt; / Select & gt; & Lt; / Div & gt; & Lt; Div id = "hdm-div" style = "white-space: nowrap; display: inline" & gt; & Lt; Label = "hdm" & gt; Hdm: & lt; / Label & gt; For & lt; Select ID = "HDM" style = "display: inline" name = "hdm" & gt; & Lt; Option selected = "selected" value = "0" & ​​gt; 0 & lt; / Options & gt; & Lt; Option value = "1" & gt; 1 & lt; / Options & gt; & Lt; Option value = "2" & gt; 2 & lt; / Options & gt; & Lt; Option value = "3" & gt; 3 & lt; / Options & gt; & Lt; Option value = "4" & gt; 4 & lt; / Options & gt; & Lt; / Select & gt; & Lt; / Div & gt; & Lt; Strong> ......... the other two are the same .... & lt; / Form & gt; & Lt; / Html & gt; & Lt; / Strong>   

And here is the CSS file for form_admin

  form.form_admin {float: left; Clear: left; Margin: 2 AM 0 0} .form_admin fieldset {float: left; Width: Auto; Limit: 1px solid & lt ;? Php echo $ admin_table_border_color? & Gt ;; Padding: 1em} .form_admin legend {font-size: small} .form_admin div {float: left; Clear: left;} .form_admin label {display: block; Swim left; Clear: left; Width: & lt ;? Php echo $ admin_form_label_width? & Gt; Em; Minimum height: 2.0 AM; Text align: right; } .form_admin input {display: block; Swim left; Explicit: Correct; & Lt; / Strong> Width: & lt ;? Php echo $ admin_form_input_width? & Gt; Em; Margin-top: -0.2em; Margin-left: & lt ;? Php echo $ admin_form_gap? & Gt; Em; Font-family: & lt ;? Php echo $ standard_font_family? & Gt ;; Font-size: small; } .form_admin {display: block; Swim left; Explicit: OK, margin-left: 1.0 AM; } .form_admin input.submit {width: auto; Margin-Top: 1.2mm; Margin-left: & lt ;? Php echo number_ format (($ admin_form_gap + $ admin_form_label_width), 1, '.', '')? & Gt; Em}    

float: left; css which will show them inline form.

Also delete by html from the end of the tag & lt; Strong>



Comments

Popular posts from this blog

excel vba - How to delete Solver(SOLVER.XLAM) code -

jsp - Google line chart x-axis shrinks on transition -

java - Reaching JTextField in a DocumentListener -