View source: R/containerResizer.R
| splitCard2 | R Documentation | 
Highly customizable and re sizable split screen container version 2
splitCard2(
  left,
  right,
  bg.left.color = NULL,
  bg.right.color = NULL,
  border.color = NULL,
  text.left.color = "black",
  text.right.color = "black",
  slider.position = charNum1to100
)
| left | content on the left or top | 
| right | content on the right or bottom | 
| bg.left.color | left panel color e.g red, black or #333333 | 
| bg.right.color | right panel color e.g red, black or #333333 | 
| border.color | border color of the container e.g. red or #f5f5f5 | 
| text.left.color | color of left panel text | 
| text.right.color | color of right panel text | 
| slider.position | position of the slider in percent | 
Realizable split screen container style 2
More examples and demo pages are located at this link - https://rpkg.net/package/r2resize.
#Use the default split card 2 function
#add a question on one side, and answer on the other
r2resize::splitCard2(
  shiny::tags$h1("Question 1"),
  shiny::tags$h1("Answer 1"),
  slider.position = "40"
)
#specify the backgroun color for the sides
r2resize::splitCard2(
  "Sample r2symbols 1",
  "Sample nextGen 1",
  bg.right.color = "white",
  bg.left.color = "lightgray"
)
#alter the border color
#specify the text color for each side
r2resize::splitCard2(
  "Sample shinyStorePlus",
  "Sample nextGen 1",
  bg.right.color = "white",
  bg.left.color = "lightgray",
  border.color = "black",
  text.left.color = "black",
  text.right.color = "black"
)
##change the text color from one side to the other
r2resize::splitCard2(
  "Sample sciRmdTheme 1",
  "Sample nextGen 1",
  bg.right.color = "white",
  bg.left.color = "lightgray",
  border.color = "gray",
  text.left.color = "red",
  text.right.color = "blue"
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.