How to style the html element? #1749
Closed
cjsmocjsmo
started this conversation in
General
Replies: 1 comment
-
Well seems I have answered my own question. I stumbled upon sir it has a global_css! macro which allowed me to set the html elements background-color
Sorry for the noise :) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hey guys I'm just starting out with dioxus and I'm working the basic fullstack example in the docs. The question is how do you style the html element? Here is a screen shot showing the problem.

I would like for the entire background to be black. When inspecting the page in devtools the white border is caused by the html element on the page. So how do I style the html element?
This is my code so far
<
#![allow(non_snake_case, unused)]
use dioxus::prelude::;
use dioxus_fullstack::prelude::;
fn main() {
LaunchBuilder::new(app).launch();
}
fn app(cx: Scope) -> Element {
let mut count = use_state(cx, || 0);
let img_path = "http://192.168.0.74:9191/landscape/20220731_112129.webp";
}
Beta Was this translation helpful? Give feedback.
All reactions