filter input font size
filter input font size
how do I change? It must be recalculated depending on screen size, in OnLoad event.
[code]
var wh=$(window).height();
var fs=Math.round(wh/35);
if (fs<11) fs=11;
bigFontSz=fs;
fs=Math.round(wh/45);
if (fs<11) fs=11;
regFontSz=fs;
$("body").css("font-size", fs );
$('#example #filter').css("font-size", 30);
[/code]
Code
$('#example #filter')
I found somewhere in the forum. But it does not work for me.
[code]
var wh=$(window).height();
var fs=Math.round(wh/35);
if (fs<11) fs=11;
bigFontSz=fs;
fs=Math.round(wh/45);
if (fs<11) fs=11;
regFontSz=fs;
$("body").css("font-size", fs );
$('#example #filter').css("font-size", 30);
[/code]
Code
$('#example #filter')
I found somewhere in the forum. But it does not work for me.
This discussion has been closed.
Replies
$('div.dataTables_filter input').css('font-size', 30);
[/code]
Allan
Good to hear that worked for you.
Allan