Change size of search field

Change size of search field

WebNewbieWebNewbie Posts: 3Questions: 0Answers: 0
edited March 2013 in General
Hi,

how do I change the size of the search field "dataTables_filter"?
I already tried the solution suggested here: http://datatables.net/forums/discussion/749/changing-the-size-of-the-search-box/p1

However, inserting [code].dataTables input { width:40px } [/code] didn't help.

Replies

  • allanallan Posts: 63,522Questions: 1Answers: 10,473 Site admin
    edited March 2013
    http://live.datatables.net/izozix/edit#javascript,html - `.dataTables_filter input`

    Allan
  • WebNewbieWebNewbie Posts: 3Questions: 0Answers: 0
    Sorry that was a typo on my end. I did have [code].dataTables_filter input {width:40px}[/code] in my code.
    I see that it works for you, but I seriously don't know, why it doesn't work for me. I'm using Bootstrap 2.3.1 and your JS and CSS files for Bootstrap 2.
  • WebNewbieWebNewbie Posts: 3Questions: 0Answers: 0
    Ok, my bad. It works now. I had some malformed CSS.
This discussion has been closed.