Reputation: 6278
I have a HTML page with personal information details using text boxes. I have two fieldsets as in
As noticed that the fieldsets are placed up and down position. My question is that
How can I placed these two fieldsets side by side (left & right position)?
Thank you
Upvotes: 1
Views: 6198
Reputation: 11
Change fieldset stye to below
fieldset {
border: 1px dotted #61B5CF;
margin-top: 1.4em;
padding: 0.6em;
float:left;
width:40%;
}
Upvotes: 0
Reputation: 92803
Remove width:40%
from form
& give float
to your fieldsets
.
Check this: http://jsfiddle.net/XdRYT/8/
Upvotes: 4
Reputation: 1346
I removed the form width: 40%;
and assigned a float:left;
property on those fieldsets. Here is the corrected fiddle: Try me
Upvotes: 4
Reputation: 5243
Simplest solution is create table with two cells and one row and place each fieldset in different cell. Another bit more complicated is to use CSS to format it.
Upvotes: 3