Skip to content
Discussion options

You must be logged in to vote

Hello, Quarto with OJS is a really great setup — personally, I find that Observable Inputs' default CSS and Quarto's built-in grid system often combine nicely (not a weak part for me). For custom cases, could adding a class + custom CSS like the one below help ?

```{ojs}
//| echo: false
//| https://observablehq.com/@recifs/add-a-class-to-an-observable-input--support

viewof test= {
  const input = Inputs.range([0, 100], {
    label: "Veuillez sélectionner une valeur ci-dessous (version sur deux lignes)",
    step: 1
  });
  input.classList.add("label_above");
  return input;
}
```

```{=html}
<style>
/* LABEL ABOVE */
form.label_above {
  display: flex;
  flex-direction: column;
  align-i…

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by haraldgroven
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
dashboards themes Related to HTML theming or any other style related issue (like highlight-style)
4 participants