All Questions
2,122 questions
0
votes
2
answers
65
views
How to get the background color of a web page using selenium with python [closed]
Using this code:
import re
def rgba_to_hex(rgba_str):
# Extract the numbers from the rgba string
match = re.match(r'rgba?\((\d+), (\d+), (\d+)(?:, [\d.]+)?\)', rgba_str)
if not match:
...
1
vote
1
answer
77
views
Image size inconsistency between GitHub and PyPI in README.md
I created some simple console games in Python(Oyna Project) and took screenshots of each game to showcase them in the README.md file. I wanted to display these images in a table format both on GitHub ...
0
votes
0
answers
79
views
bootstrap 5.3.3 how to remove the background containers?
Trying to figure out how to eliminate those background containers. Here is my code. I tried removing all the containers and cards but it still didn't eliminate it. I've looked in my base.html and it ...
0
votes
2
answers
91
views
CSS-Html glow ray bend on top left
below is the design where the animation moves around the card, the issue is when the light reaches the top left corner it disappears because the corner has a radius of 80px can anyone tell me how I ...
0
votes
1
answer
53
views
HTMLBody does not compile in Python when generating an Outlook email
I am writing a Python module to generate an outlook e-mail with an attachment using win32com. All works fine except for the formatting of the HTMLBody. As far as I have researched, it is
impossible to ...
0
votes
0
answers
51
views
Right arrow function Streamlit-HTML
Belo is my python function created using python html. want to add this animation to html table but the issue is it is creating a lot of white space and also the design of the function is not as ...
0
votes
0
answers
29
views
Python CGI script only working on certain webservers
I've been tasked with creating a website using both HTML and Python CGI. I've ran into many issues however managed to solve them all and got the HTML and CGI to work on the inbuilt python webserver ...
0
votes
2
answers
68
views
How to have multiple submit buttons in one line even if they are different form submissions, using Python Django?
I'm making a sort of checklist/todo app in Python Django and have an update form where I can save updates, mark it as complete or incomplete or delete the item.
The current code displays the save ...
1
vote
2
answers
85
views
Clicking HTML table row button opens forms for every single row
Beginner here. I have an HTML table with buttons and I want a button to toggle open a form with the values from that row. The problem is, if I have multiple rows in my table, it opens multiple forms ...
0
votes
1
answer
48
views
Does anyone know how I can keep my elements in the same position when zoomed in and out on a webpage?
Im pretty new to coding, and I was wondering if there is anything I can do in CSS, HTML, or JS that would stop my elements from moving around without using position: fixed; When I zoom out on a ...
0
votes
2
answers
69
views
Unable to replicate PyData Fonts
I'm trying to replicate the fonts used in PyData's documentation. The custom CSS styling is taken directly from their website, however, my heading renders with a different font. PyData's docs use ...
0
votes
0
answers
65
views
In gradio, when custom HTML is added, the original width and height are scaled, and almost all page elements are misaligned
When custom HTML is added, the original width and height are scaled, and almost all page elements are misaligned
This is a simple piece of html, but it speaks volumes.
css_code= '''
.container {
...
0
votes
1
answer
35
views
Failed to load resource: the server responded with a status of 404 (NOT FOUND) Flask application
I'm getting this error but my files do exist and I think my file structure is correct, I don't know what to do due to I've tried everything I've found on the net but it's still failing to load the css ...
1
vote
2
answers
71
views
How to webscrape elements using beautifulsoup properly?
I am not from web scaping or website/html background and new to this field.
Trying out scraping elements from this link that contains containers/cards.
I have tried below code and find a little ...
0
votes
0
answers
28
views
Python Flask Pattern Generation: First Row Misalignment Issue
I'm working on a Python Flask web application that generates various patterns based on user input. I'm specifically trying to create a star pattern, but the first row is consistently misaligned. The ...