2

I am trying 2 column layout using CSS to divide the sapce in 2 halfs. However the {.tabset} command is not working. I have tried multiple combinations but no help.

---
title: "2 Column layout with tabs"
output:
  html_document:
    css: style.css
---

<div class = "col-leftmid">

# A {.tabset}

## abc

</div>

<div class = "col-rightmid">

# B {.tabset}

## xyz

</div>

here is style.css content for column divide used

.col-leftmid{
  float: left;
  width: 50%;
  text-align: left;
}

.col-rightmid{
  float: right;
  width: 50%;
  text-align: left;
}
4

1 回答 1

0

我想我得到了解决方案并且它现在正在工作。我只需要在 tabset 调用旁边提及“col-leftmid”/“col-rightmid”。

---
title: "2 Column layout with tabs"
output:
  html_document:
    css: style.css
---

# A {.tabset .col-leftmid}

## abc


# B {.tabset .col-rightmid}

## xyz

## mno
于 2019-11-14T05:19:04.660 回答