RadDatePicker icon showing below after media query applies on it.
In normal Desktop view it is ok and showing at the right,but in mobile view it goes below. Please help me where i am wrong in css. Here is the sample html and css.
Also i am attaching both screen shot for reference.
<table class="table" id="tlSearch"> <thead> <tr> <th id="thFromDate">From Date</th> <th id="thToDate">To Date</th> <th id="badgeno"> <asp:Label ID="lblSelectedBadgeNo" runat="server" Text="" Font-Bold="true"></asp:Label> </th> </tr> </thead> <tbody> <tr> <td data-th="From Date"> <telerik:RadDatePicker ID="dtAttendanceFrom" runat="server"></telerik:RadDatePicker> <asp:RequiredFieldValidator ID="rfvDateFrom" runat="server" ControlToValidate="dtAttendanceFrom" CssClass="validator" ValidationGroup="gRequired" ErrorMessage="*" ToolTip="Date From is Required!"> </asp:RequiredFieldValidator> </td> <td data-th="To Date"> <telerik:RadDatePicker ID="dtAttendanceTo" runat="server"></telerik:RadDatePicker> <asp:RequiredFieldValidator ID="rfvAttendanceTo" runat="server" ControlToValidate="dtAttendanceTo" CssClass="validator" ValidationGroup="gRequired" ErrorMessage="*" ToolTip="Date From is Required!"> </asp:RequiredFieldValidator> </td> <td> <asp:Button CssClass="Button" ID="btnLoadAttendance" ValidationGroup="gRequired" CausesValidation="true" runat="server" Text="Display Record" OnClick="btnLoadAttendance_Click"> </asp:Button> </td> </tr> </tbody></table>
@media screen and (max-width: 767px) { table#tlSearch caption { background-image: none; } th#thFromDate { display:none; } th#thToDate { display:none; } th { text-align:center !important; } table#tlSearch tbody td { display: block; padding: .6rem; } table#tlSearch tbody tr td:before { content: attr(data-th); font-weight: bold; display: inline-block; width: 10rem; }}