Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

fieldset same line

I have 2 fieldsets:

<fieldset> first fildset </fieldset>

<fieldset> second fieldset </fieldset>

how can I place them in same line?

like image 377
33528 Avatar asked Feb 22 '13 15:02

33528


2 Answers

You can set their display css property to inline:

<style type="text/css">
  fieldset.inline {
    display: inline;
  }
</style>

<fieldset class="inline"> first fildset </fieldset>
<fieldset class="inline"> second fieldset </fieldset>

Here's how the result looks: http://jsbin.com/aseyej/1/edit

like image 147
Cristian Lupascu Avatar answered Sep 21 '22 11:09

Cristian Lupascu


Place them in a div container.

<style type="text/css">
    .container {
    height:100px;
    width:600px;
    background-color:gray;       
}
.left {
    float:left;
    width:200px;
    background-color:blue;
}
.right {
    float:right;
    width:400px;
    background-color:red;
}
</style>

<div class="container">
    <div class="right"><fieldset> first fildset </fieldset></div>
    <div class="left"><fieldset> second fieldset </fieldset></div>
</div>
like image 29
JabberwockyDecompiler Avatar answered Sep 20 '22 11:09

JabberwockyDecompiler