Skip to content

How to use CSS Grid in DaisyUI / Feliz / SafeStack project #493

Answered by MangelMaxime
WarmWinters asked this question in Q&A
Discussion options

You must be logged in to vote

Hello @WarmWinters,

I am not sure to understand what you are trying to do.

It seems like your index.html is containing some static HTML in the body where in general you just have a root div in the body and then use React to build the application from that.

Then using CSS classes is the same as in any React application, you import your style file in your application (it depends on the bundler you are using).

And then you can write things like:

Html.div [
    Html.header [
        prop.text "Header"
    ]
    Html.main [
        prop.text "Content"
    ]
    Html.nav [
        prop.text "Navigation"
    ]
    Html.footer [
        prop.text "Footer"
    ]
]

In general, it is recommended to …

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by WarmWinters
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants