javascript - How to move one of the tabPanel to the right the webpage in Shiny-App -


i have following shiny app.

library(shiny) ui <- shinyapp(   shinyui(     navbarpage("x-men",                tabpanel("plot"),                tabpanel("summary" )             )), server <- shinyserver(function(input, output) {})                ) # run application  shinyapp(ui = ui, server = server) 

which produce things this:

enter image description here

as stated in image. how can move summary tab panel right?


update

after hubertl suggestion :

enter image description here

notice distortion , it's not "summary" moved right.

you can extend width of nav-bar , set first-child position float:right :

shinyapp(ui = shinyui(     navbarpage("x-men", selected="plot",                tabpanel("summary" ),                tabpanel("plot"),                tags$head(tags$style('.navbar-nav {width: 95%;}                                     .navbar-nav :first-child{float:right}'))                    )),   server = shinyserver(function(input, output) {})) 

edit :

added selected="plot" keep plot active tabset enter image description here


Comments