简体   繁体   中英

2 side by side same size fieldset

I'm designing a webpage with Primefaces but I think my problem is more general :

I want 2 fieldsets side by side that have the same size. How can I do it ?

Edit: The 2 fieldset are in a <div> with height:auto; width:auto; height:auto; width:auto;

try this in css

fieldset{
width :50%;
padding : 0;
margin : 0;
display : inline-block;
}
  • Give each <fieldset> a width of 50%
  • Float the first one to the left, float the second one to the right

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM