javascript - Small fonts on Bootstrap DateTime picker - Stack Overflow

I´m using the Bootstrap 3 DateTime picker from www.githubEonasdanbootstrap-datetimepickerEverything i

I´m using the Bootstrap 3 DateTime picker from www.github/Eonasdan/bootstrap-datetimepicker

Everything is working fine, except that I need to use small fonts and less spacing between the calendar grid lines.

Does anyone has an idea on how to do it. This is the original code:

<div class="small">
    <div id="myPlaceholder"></div>
</div>

And on Javascript:

 $('#myPlaceholder').datetimepicker({
                language : 'en'
            });

It works well, but does not show small fonts.

I´m using the Bootstrap 3 DateTime picker from www.github./Eonasdan/bootstrap-datetimepicker

Everything is working fine, except that I need to use small fonts and less spacing between the calendar grid lines.

Does anyone has an idea on how to do it. This is the original code:

<div class="small">
    <div id="myPlaceholder"></div>
</div>

And on Javascript:

 $('#myPlaceholder').datetimepicker({
                language : 'en'
            });

It works well, but does not show small fonts.

Share Improve this question edited Mar 18, 2015 at 21:52 amphetamachine 30.7k12 gold badges68 silver badges74 bronze badges asked Jan 14, 2015 at 1:06 MendesMendes 18.6k38 gold badges166 silver badges282 bronze badges 0
Add a ment  | 

1 Answer 1

Reset to default 5

You only need to add your own CSS to style the date picker.

This will make the columns narrower:

.bootstrap-datetimepicker-widget td.day {
    width: 200px;
}

This will make the rows shorter:

.bootstrap-datetimepicker-widget td.day {
    line-height: 10px;
}

This makes the font smaller for the day numbers:

.bootstrap-datetimepicker-widget td.day {
    font-size: 10px;
}

And bining them all:

.bootstrap-datetimepicker-widget td.day {
    width: 200px;
    line-height: 10px;
    font-size: 10px;
}

And as a bonus, this will make the font size of the day of week smaller:

th.dow {
    font-size: 12px;
}

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745229825a4617626.html

相关推荐

  • javascript - Small fonts on Bootstrap DateTime picker - Stack Overflow

    I´m using the Bootstrap 3 DateTime picker from www.githubEonasdanbootstrap-datetimepickerEverything i

    4小时前
    10

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信