EasyUI Forum
April 20, 2024, 12:39:30 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Using label  (Read 14251 times)
jega
Full Member
***
Posts: 190


View Profile
« on: July 25, 2017, 03:39:55 PM »

Hi

If i have this line

<input id="test1" class="easyui-textbox" data-options=""><input id="test2" class="easyui-textbox" data-options="'">

It makes the two textboxes beside eachother, but when i add a label

<input id="test1" class="easyui-textbox" data-options="label:'Test1',labelPosition:'top'"><input id="test2" class="easyui-textbox" data-options="label:'Test2',labelPosition:'top'">

they are in two lines.

I need label and both in same line

Any help....

Logged
jarry
Administrator
Hero Member
*****
Posts: 2262


View Profile Email
« Reply #1 on: July 26, 2017, 05:24:10 PM »

Please try this code:
Code:
<span style="display:inline-block">
<input id="test1" class="easyui-textbox" data-options="label:'Test1',labelPosition:'top'">
</span>
<span style="display:inline-block">
<input id="test2" class="easyui-textbox" data-options="label:'Test2',labelPosition:'top'">
</span>
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!