Help with placement of Search, and using "clear"
Help with placement of Search, and using "clear"
bradirby
Posts: 5Questions: 0Answers: 0
I am trying to add some additional elements to the header of my datatables grid and all is working except the Search box is bumped down one row. How can I center the radio buttons, and get the search box to show up on the same row as the rest? Does it have something to do with the <"Clear">?
Here's a fiddle: http://jsfiddle.net/7KkpQ/3/
Here's a fiddle: http://jsfiddle.net/7KkpQ/3/
This discussion has been closed.
Replies
.EacEcrRadioRegion {
float: left;
}
without the float left, it looks like this (dotted lines are the box around the header):
-----------------------------------------------------
{length combo} {radio buttons}
{search box}
-----------------------------------------------------
With the float left, it looks like this:
-----------------------------------------------------
{length combo} {radio buttons}
-----------------------------------------------------
{search box}
http://imgur.com/1N6ABtP
.dataTables_length { // Show (menu) entries
width: 40%;
float: left;
}
.dataTables_filter { // Search
width: 50%;
float: right;
text-align: right;
}
Works for me.