How To Change The Width And Height Of Verbatimtextoutput In Shiny And Shinydashboard
In this example, I would like to make the width of the height of the verbatimTextOutput (Text output no.1) as the same as the textInput (Text input no.1). My ultimate goal is to ma
Solution 1:
If you check styles for
textInput
, you will findwidth
,max-width
andpadding
details.I don't fully follow your question but if you want to wrap text then you can do this using
white-space: pre-wrap;
So putting all of these in HTML
, your tags$style
will be something like:
tags$head(
tags$style(
HTML(
"
.form-control {
border-radius: 4px 4px 4px 4px;
}
#txt1_out {
font-family: 'Source Sans Pro','Helvetica Neue',Helvetica,Arial,sans-serif;
font-size: 14px;
width: 300px;
max-width: 100%;
padding: 6px 12px;
white-space: pre-wrap;
}
"
)
)
)
Post a Comment for "How To Change The Width And Height Of Verbatimtextoutput In Shiny And Shinydashboard"