css not applying in form generated with render controller #4222
Unanswered
padrecedano
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am adding a form inside HTML content with render controller (Twig), but the .css styles are not being recognized for that specific content, for the rest of the content there is no problem.
The HTML is into one file called footer.html with this content:
And I am adding this file in a Twig template with include:
When I test the page in the browser, it generates the form well, but the styles for the content that is created using
{{ render(controller( 'App\\Controller\\SubscribeController::new' )) }}
are not applied.If I copy/paste the generated HTML and .css in one editor the styles do apply. I would like to know why they do not apply when testing the page directly and what should I do to make them apply. You can see the result of snippet in this question.
Beta Was this translation helpful? Give feedback.
All reactions