Click here to Skip to main content
15,915,044 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hello,
i want to place two div tags in one line but not getting properly


following is my source code

<asp:Panel ID="pnlcollapsible" runat="server" height="0" CssClass="pnlsearchtool">

Registration Date(From):<asp:TextBox ID="txtfromdate" runat="server" Width="100px">
Registration Date(To):<asp:TextBox ID="txttodate" runat="server" Width="100px">
PIS Number:<asp:TextBox ID="txtpisnumber" runat="server" Width="100px">
Patient Name:<asp:TextBox ID="txtpatientname" runat="server" Width="100px">



following is the css


CSS
.pnlsearchtool .pnl-top-region .pnllabelcontent .pnlsearchcontent
{
  width:600px;
  height:20px;
}
.pnlsearchtool .pnl-top-region .pnllabelcontent .pnlsearchcontent .pnlleftsearchcontent
{
   width: 200px;
   height:20px;
   float:left;
}
.pnlsearchtool .pnl-top-region .pnllabelcontent .pnlsearchcontent .pnlrightsearchcontent
{
    width: 200px;
   height:20px;
   float:right;


}




please ,tell me how can i make two div tag in one line...
Posted
Updated 10-Sep-13 23:49pm
v2

1 solution

Apply the below class in that two div
CSS
.sameline {
    display: inline;
}

Hope this helps
 
Share this answer
 
Comments
ajays3356 11-Sep-13 5:57am    
applied but again dont getting the display correctly
Jameel VM 11-Sep-13 5:59am    
did you see this?
ajays3356 11-Sep-13 6:00am    
yes, i am trying the above css class but not getting the result
Jameel VM 11-Sep-13 6:00am    
http://jsfiddle.net/timdown/GVZPX/
Jameel VM 11-Sep-13 6:02am    
another link
http://jsfiddle.net/UwZsm/2/

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900