OiO.lk Community platform!

Oio.lk is an excellent forum for developers, providing a wide range of resources, discussions, and support for those in the developer community. Join oio.lk today to connect with like-minded professionals, share insights, and stay updated on the latest trends and technologies in the development field.
  You need to log in or register to access the solved answers to this problem.
  • You have reached the maximum number of guest views allowed
  • Please register below to remove this limitation

HTMLand CSS not rendering in GitHub Streamlit

  • Thread starter Thread starter pritesh
  • Start date Start date
P

pritesh

Guest
I am making an app with Python and Streamlit and deploying the Python code to GitHub. The HTML and CSS is working on my local system, but after deployment on GitHub, they are not working as expected.

Code:
if st.session_state.user_answer == st.session_state.correct_answer:
            st.session_state.feedback = '<p style="background-color: green; padding: 10px; border-radius: 5px;"><b style="color: black;">Correct!</b></p>'
        else:
            st.session_state.feedback = f'<p style="background-color: lightcoral; padding: 10px; border-radius: 5px;"><b style="color: black;">Incorrect.</b> The correct answer is <b>{st.session_state.correct_answer}</b></p>'
<p>I am making an app with Python and Streamlit and deploying the Python code to GitHub. The HTML and CSS is working on my local system, but after deployment on GitHub, they are not working as expected.</p>
<pre><code>if st.session_state.user_answer == st.session_state.correct_answer:
st.session_state.feedback = '<p style="background-color: green; padding: 10px; border-radius: 5px;"><b style="color: black;">Correct!</b></p>'
else:
st.session_state.feedback = f'<p style="background-color: lightcoral; padding: 10px; border-radius: 5px;"><b style="color: black;">Incorrect.</b> The correct answer is <b>{st.session_state.correct_answer}</b></p>'
</code></pre>
 
Top