lining up fieldset tags horizontally in css3

别说谁变了你拦得住时间么 提交于 2019-12-13 02:42:22

问题


I cannot get these two fieldsets to line up horizontally.I've tried every variation of float and display I could think of. I currently do not have these elements in a div although I tried that too. Do they have to be in a div?

<fieldset class="bio1">
  <legend>Name</legend>
  <p>President</p><br/>
</fieldset>
<fieldset class="bioimage">
   <legend>Picture</legend>
   <asp:Image ID="Image1" runat="server" ImageUrl="~/Images/BioImages/bio.jpg" />
 </fieldset>

回答1:


A matter of CSS (not especially CSS3). Set both of them (fieldsets css) to

display: inline-block;
vertical-align: top; /* enter your desired option */


来源:https://stackoverflow.com/questions/12299068/lining-up-fieldset-tags-horizontally-in-css3

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!