How do I align the dropdown arrow on a HTML5 date input to the right side?

dpberry178

It goes without saying I am new to HTML and Bootstrap.

I have this HTML:

<dd class="col-4">
                            <div class="input-group input-group-sm form-group">
                                <span class="input-group-addon" id="dateaddon"><i class="fa fa-calendar" aria-hidden="true"></i></span>
                                <input type="date" name="resDate" class="form-control input-sm" aria-describedby="dateaddon" placeholder=".input-sm">
                            </div>
                        </dd>
                        <dd class="col-4">
                            <div class="input-group input-group-sm form-group">
                                <span class="input-group-addon" id="dateaddon"><i class="fa fa-calendar" aria-hidden="true"></i></span>
                                <input type="time" name="resDate" class="form-control input-sm" aria-describedby="dateaddon" placeholder=".input-sm">
                            </div>
                        </dd>

Which gives me an an output like this (note how tall the date/time inputs are and that the dropdown arrow/clear button are shown at the bottom instead of the to the right of the date):

enter image description here

My question is how do I get the date input to be smaller and with the dropdown arrow/clear button aligned to the right of the input? I don't want the input boxes to be that tall.

I can manually change the height using CSS, but this does not give the desired result; it just hides dropdown, etc and makes the input unusable.

Thank you!

dpberry178

This ended up being an issue with Bootstrap 4.0.0-alpha.6. When I use Bootstrap 4.0.0-beta, it works just fine.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Java

How do I right align div elements?

From Dev

Html and CSS how can i align 3 divs side by side

From Dev

How do I align my text in a label to the right side?

From Dev

How to right-align a navigation dropdown in ActionBar?

From Dev

How align Image on right side of div?

From Dev

How do i center the panel-body, with input-label align with left side of input box?

From Dev

How can I align captions to the right side of an image in JSSOR?

From Dev

How do I select a link with a right arrow as the text with xpath?

From Dev

How to align check box on the right side in CheckedtextView

From Dev

How do I align the NAV to the right side of the page?

From Dev

How to align logo at left and navigation on right side?

From Dev

How to align Label to the right side of header in SemanticUI

From Dev

How can I load image from url along side input type file to html5 canvas?

From Dev

How can I align checkbox with text to right side of the screen?

From Dev

How do I align my navbar to the right of my html page?

From Dev

How can I load image from url along side input type file to html5 canvas?

From Dev

How to right-align a navigation dropdown in ActionBar?

From Dev

How do i center the panel-body, with input-label align with left side of input box?

From Dev

How do i move an object to the right using the arrow key right?

From Dev

How do I select a link with a right arrow as the text with xpath?

From Dev

How do i right align an icon set arrow under conditional formatting so that both number and arrow are on right side of cell neatly together?

From Dev

How can I auto align desktop icons on right side?

From Dev

In HTML5, how do I align multiple elements to appear on the same line in a list definition?

From Dev

How do I use if statements with the HTML5 date picker?

From Dev

How do you align 3 DIV's side by side inside of another DIV and right justify the last DIV?

From Dev

how do i stick a html tag on the right side?

From Dev

How do I set my HTML5 datetime-local input field to the current local date-time in Angular?

From Dev

How to align WPF TabControl headers to right side?

From Dev

How do I create a HTML/PHP form where the text input fields are horizontally aligned side by side

Related Related

  1. 1

    How do I right align div elements?

  2. 2

    Html and CSS how can i align 3 divs side by side

  3. 3

    How do I align my text in a label to the right side?

  4. 4

    How to right-align a navigation dropdown in ActionBar?

  5. 5

    How align Image on right side of div?

  6. 6

    How do i center the panel-body, with input-label align with left side of input box?

  7. 7

    How can I align captions to the right side of an image in JSSOR?

  8. 8

    How do I select a link with a right arrow as the text with xpath?

  9. 9

    How to align check box on the right side in CheckedtextView

  10. 10

    How do I align the NAV to the right side of the page?

  11. 11

    How to align logo at left and navigation on right side?

  12. 12

    How to align Label to the right side of header in SemanticUI

  13. 13

    How can I load image from url along side input type file to html5 canvas?

  14. 14

    How can I align checkbox with text to right side of the screen?

  15. 15

    How do I align my navbar to the right of my html page?

  16. 16

    How can I load image from url along side input type file to html5 canvas?

  17. 17

    How to right-align a navigation dropdown in ActionBar?

  18. 18

    How do i center the panel-body, with input-label align with left side of input box?

  19. 19

    How do i move an object to the right using the arrow key right?

  20. 20

    How do I select a link with a right arrow as the text with xpath?

  21. 21

    How do i right align an icon set arrow under conditional formatting so that both number and arrow are on right side of cell neatly together?

  22. 22

    How can I auto align desktop icons on right side?

  23. 23

    In HTML5, how do I align multiple elements to appear on the same line in a list definition?

  24. 24

    How do I use if statements with the HTML5 date picker?

  25. 25

    How do you align 3 DIV's side by side inside of another DIV and right justify the last DIV?

  26. 26

    how do i stick a html tag on the right side?

  27. 27

    How do I set my HTML5 datetime-local input field to the current local date-time in Angular?

  28. 28

    How to align WPF TabControl headers to right side?

  29. 29

    How do I create a HTML/PHP form where the text input fields are horizontally aligned side by side

HotTag

Archive