I have 2 fieldsets:
<fieldset> first fildset </fieldset>
<fieldset> second fieldset </fieldset>
how can I place them in same line?
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
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>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With