Category : css

this is the captcha funstion- def get_Capta(): global capta capta = ”.join(random.choice(string.ascii_uppercase + string.ascii_lowercase + string.digits) for _ in range(7)) return capta in this function i am rendering the captcha with image and voice def get_captcha(): global CAPTCHA global image image = ImageCaptcha(width = 280, height = 90) global file1 # Image captcha text get_Capta() ..

Read more

I used df.to_html(classes="wide", escape=False, index=False) to convert two pandas dataframe into html with same css style, and I inserted them into my mail.HTMLbody. But when I sent out the email the first table has border collapsed, but the second table has border separate. Here’s my function to convert pandas dataframe into html def insert_html_table(df) -> ..

Read more

got something that is driving me crazy here, please help me! I’ve coded some website layout test with Dash in Python and here is code: app = dash.Dash() app.layout = html.Div([ html.H2(children="Title", style={‘color’:’lightgrey’, ‘background-color’: ‘black’, ‘margin-top’: ‘0px’, ‘margin-bottom’: ‘0px’, ‘padding-top’:’12.5px’, ‘padding-bottom’:’12.5px’, ‘padding-left’:’10px’, ‘text-align’: ‘center’}), html.Div(children=[], style={‘widh’:’50%’, ‘height’:’50%’, ‘border’: ’10px solid rgb(190, 190, 190)’, ‘outline’: ’10px ..

Read more

I have a database table called "country" with fields: country_code and country_name. e.g. country_code = AF country_name = Afghanistan I will need to make a drop-down with all the countries and add it to the HTML. Instead of adding the radio buttons manually, I want to try and do it using jinga. {% for country ..

Read more

I have a database table called "country" with fields: country_code and country_name. e.g. country_code = AF country_name = Afghanistan I will need to make a drop down with all the countries and add it to the html. Instead of adding the radio buttons manually I want to try and it using jinga. <div class="container select-box ..

Read more

I want to scrap commits of user in using beautiful soup in python but getting non my code from bs4 import BeautifulSoup import requests html = requests.get(‘https://github.com/pnp/cli-microsoft365’).text soup = BeautifulSoup(html, ‘html.parser’) commits = soup.find(‘strong’, class_=’repo-content-pjax-container > div > div.gutter-condensed.gutter-lg.flex-column.flex-md-row.d-flex > div.flex-shrink-0.col-12.col-md-9.mb-4.mb-md-0 > div.Box.mb-3 > div.Box-header.position-relative > div > div:nth-child(4) > ul > li > a ..

Read more

Objective: Im building a dash app on python and i’m trying to modify text orientation angle that is preformatted vertically to horizontal Let’s say I have a word "hello" that is shown vertically and I want to put it between an html tag with the css property textOrientation How do I mix "hello" with this ..

Read more