I simply have an input slider,Here, and I want it to occupy 100% of the viewbox. Normally you can manipulate this via CSS, but Observable is over-riding this.
On the bottom of my notebook, you can see in my CSS cell I have hover effects that do change the width and opacity, but when I remove the :hover, the width defaults back to Observable’s default of 240px.
Any advice to manipulate the width of the input slider and mantain the viewof syntax?
We don’t recommend using global stylesheets because they often don’t work with imports or conflict with default styles, and can be unpredictable with dataflow. Instead, we recommend using an inline style, which conveniently will also override the default style: