Description Usage Arguments See Also Examples
The affix
utility function applies Bootstrap classes to fix elements to the
top or bottom of a page. Use "sticky"
to cause an element to fix to the top
of a page after the element is scrolled past. Important, the IE11 and
Edge browsers do not support the sticky behavior.
1 | affix(tag, position)
|
tag |
A tag element. |
position |
One of |
Other design utilities:
active()
,
background()
,
border()
,
display()
,
float()
,
font()
,
height()
,
padding()
,
scroll()
,
shadow()
,
width()
1 2 3 4 5 6 7 8 9 10 | ### Affix an element
div(
span("I'm up here!") %>%
padding(left = 3, right = 3) %>%
background("teal")
) %>%
display("flex") %>%
flex(justify = "center") %>%
affix("top")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.