Vertical align the button

1,356 views
Skip to first unread message

Zhilan Ming

unread,
Aug 14, 2013, 11:49:48 AM8/14/13
to shiny-...@googlegroups.com
Hello all,
 
As I attached. One input text and a submit button are in the same line. How can I move the submit button to the bottom so it is next to the input box?
 
Here is my ui code right now:
 
conditionalPanel(condition = "input.plot1", br(),  div(
                                                                        div(class = "row-fluid",
                                                                        div(class = "span3",numericInput("inputK", "Input Ka (any number between 0 and 1):",   0, min = 0, max = 1)),
                                                                        div(class = "span3",submitButton("OK"))))
 
Thank!
 
-Zhilan
Capture.JPG

Vincent Nijs

unread,
Aug 14, 2013, 7:27:01 PM8/14/13
to shiny-...@googlegroups.com
You can use a tag to align a button (or a numericInput). See example below:

downloadButton('downloadData', 'Save data'),
tags$style(type='text/css', "#downloadData { vertical-align: top; height: 18.5px; width: 70px;}"),
Reply all
Reply to author
Forward
0 new messages