css

How to convert the OpenCV GetPerpectiveTransform Matrix into a CSS Matrix?

How to convert the OpenCV GetPerpectiveTransform Matrix into a CSS Matrix? Question: I have a matrix from the Python Open-CV library: M = cv2.getPerspectiveTransform(source_points, points) But it is completely different from the CSS Transform Matrix Even though it has the same shape I think open-cv does some kind of other translations to x and y …

Total answers: 1

Why don't bootstrap codes run on my django website?

Why don't bootstrap codes run on my django website? Question: Hello I’m having trouble applying bootstrap to my website in django. I copied the bootstrap link in the html page and wrote the navbar codes in the body part, but when I hit runserver, the website page doesn’t change at all! where is the problem …

Total answers: 1

How to add background-color only on some part of my page

How to add background-color only on some part of my page Question: I make a local page that prints me some information. My boos want to add two different colours as a background colour. I know how to add background colour to the whole page, but I don’t know how to separate the page into …

Total answers: 3

jinja2.exceptions.TemplateSyntaxError: expected token ':', got '}' in html

jinja2.exceptions.TemplateSyntaxError: expected token ':', got '}' in html Question: i’m trying to make an if into my code html with flask: {% if {{ role }} = 1 %} <div id="cabecera"> <header class="py-3 mb-4 border-bottom"> <div class="container d-flex flex-wrap justify-content-center"> <a href="/home" class="d-flex align-items-center mb-3 mb-lg-0 me-lg-auto text-dark text-decoration-none"> i send {{ role }} from …

Total answers: 2

Django Conditional to remove css class if not on main url

Django Conditional to remove css class if not on main url Question: Im wondering if someone could help me figure this out; Working on a web app using the django framework and for my navbar, I have a css class that makes it transparent on the main page. This of course worked on a static …

Total answers: 1

How do I make the space between subplots smaller?

How do I make the space between subplots smaller? Question: I have this subplot- fig = make_subplots(rows = 4, cols = 1) fig.append_trace(go.Scatter( x=[3, 4, 5], y=[1000, 1100, 1200], ), row=1, col=1) fig.append_trace(go.Scatter( x=[2, 3, 4], y=[100, 110, 120], ), row=2, col=1) fig.append_trace(go.Scatter( x=[0, 1, 2], y=[10, 11, 12] ), row=3, col=1) fig[‘layout’].update(margin=dict(l=0,r=0,b=0,t=0)) I also …

Total answers: 1

How to show Ag grid pop up menu above Quasar QDialog

How to show Ag grid pop up menu above Quasar QDialog Question: I am using Ag grid inside quasar QDialog. When the dialog is displayed and I click the column option menu, the Ag grid pop up menu appears behind QDialog, see the picture below: is there any way to make the ag grid pop …

Total answers: 1

How to use a parent selector within a relative css selector in selenium python

How to use a parent selector within a relative css selector in selenium python Question: I’m going to try my best to explain the problem. This question is about selenium in Python. Consider this example: for row in driver.find_elements(By.CSS_SELECTOR, "div[style=’overflow: hidden;’] > div > div:nth-child(3)"): player = row.find_element(By.CSS_SELECTOR, ‘> div:first-child > span’).text Obviously, this second …

Total answers: 1

How to have a customized CSS style for a bootstrap component?

How to have a customized CSS style for a bootstrap component? Question: I have the code below that has a bootstrap offcanvas at the left. I wondered how I can change the width of the collapsed sidebar. Bootstrap does not have a style tag to do that. I searched and I saw some people suggested …

Total answers: 1

How to color a dataframe row based on a column value when converting to HTML?

How to color a dataframe row based on a column value when converting to HTML? Question: I am trying to color a row based on a minimum value in a column. My mystyle.css is .mystyle { font-size: 11pt; font-family: Arial; border-collapse: collapse; border: 1px solid rgb(7, 7, 7); } .mystyle td, th { padding: 5px; …

Total answers: 1