firmo23
firmo23

Reputation: 8404

Place text at the very top shinydashboard sidebar

In the shiny app below I would like to put the text that is inside the sidebar a little bit higher than it is in order to be in the same line with the tab panel tabs. The header is disabled and the tabsetPabel() should not be moved lower instead.

## app.R ##
library(shiny)
library(shinydashboard)

ui <- dashboardPage(
  dashboardHeader(disable = T),
  dashboardSidebar(
    h4("titletitletilte")
  ),
  dashboardBody(
    tabsetPanel(
      id="inTabset",
      tabPanel("show",
      ),
      tabPanel("Hide")
    )
  )
)

server <- function(input, output) { }

shinyApp(ui, server)

Upvotes: 0

Views: 569

Answers (1)

Dominik Żabiński
Dominik Żabiński

Reputation: 325

Are you looking for something like this?

h4(style = "position: absolute;top: 15px;", "titletitletilte")

Upvotes: 2

Related Questions