ztable position="left" (or "right") renders incorrectly when printing multiple tables
jeffmun opened this issue · 0 comments
jeffmun commented
When I try to align multiple tables on the left side of the page (arg: position="left"
), the subsequent tables are rendered next to the first table. This happens even when I manually insert a </br>
between the tables. The default (position="center"
) works as expected.
The following code illustrates the problem:
# CENTERED
z1 <- ztable(head(iris,3))
z2 <- ztable(head(cars,3))
z1; z2 # <-- renders correctly
# LEFT
z1 <- ztable(head(iris,3), position="left")
z2 <- ztable(head(cars,3), position="left")
z1; z2 # <-- z2 ends up immediately to the right of z1
# RIGHT
z1 <- ztable(head(iris,3), position="right")
z2 <- ztable(head(cars,3), position="right")
z1; z2 # <-- these are rendered right-aligned (again next to each other)
# but on the same vertical position as the "left" tables
The only differences in the html seems to be the <table align="left"
vs. <table align="center"
Any ideas what is happening?
Thanks.