-
Pico and Blazor should be a winning combination for us backend developers who are CSS challenged. I patched in the Company example into a new Blazor wasm app. It almost works except Blazor wraps all the active stuff in an div with the id of app.
Blazor puts all the dynamic SPA content wrapped in that div. The problem is that the presence of that div changes the CSS such that positioning of things in the Company example are messed up. I saved my page to a file, and brought it up in the browser and it had the same problem. I removed the app div wrapper and brought it up again and the problem was gone. Has anyone here used pico in a Blazor wasm app? It's probably something simple but I am truly css challenged. Here is the content of the app.css file. Thanks in advance,
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Ok, Solved my own problem. Header, Main, and Footer are direct descendants of Body. So I added custom css to make them also direct descendents of #app, which is the id of the div Blazor needs to insert its main component. As you can see, I am pretty much css challenged, so Pico is going to be just what I need, |
Beta Was this translation helpful? Give feedback.
-
@chiefley what did you do exactly? I'm having a problem with it, it is not behaving as expected at all. I added |
Beta Was this translation helpful? Give feedback.
Ok, Solved my own problem. Header, Main, and Footer are direct descendants of Body. So I added custom css to make them also direct descendents of #app, which is the id of the div Blazor needs to insert its main component.
As you can see, I am pretty much css challenged, so Pico is going to be just what I need,