css

Bootstrap’s cards. How to shorten the words in card with … . Django & CSS

Bootstrap’s cards. How to shorten the words in card with … . Django & CSS Question: I am using the Bootstrap’s card to display my journals. It looks like this: Journal List However, when I insert a lot of word, the card size will be veryyyy long. Journal List With really long essay How to …

Total answers: 2

How to use BeautifulSoup to find "Description" by div class_=css-gz8dae?

How to use BeautifulSoup to find "Description" by div class_=css-gz8dae? Question: I am new to Python that I am learning for scraping purposes. I am using BeautifulSoup to collect descriptions from job offers at: https://justjoin.it/offers/itds-net-fullstack-developer-angular On another site with job offers, using the same code with different div classes I can find what I need. …

Total answers: 2

Flask form not validating on submit

Flask form not validating on submit Question: I’m trying to make a form that looks like an exam page. I have a checkbox and a submit button, the submit button when clicked does not do anything. The HTML code in exam.html {% extends ‘layout.html’ %} {% block content %} <h3 class="pt-5 p-4">exam page</h3> <div class="form"> …

Total answers: 1

Can't load variables into site.css for Flask app to render home.html

Can't load variables into site.css for Flask app to render home.html Question: I’m really struggling with trying to get my site.css file to accept two variables being passed in from my app.py using Jinja2 template i.e., {{ variable }}. Within app.py, I am defining two variables called: empty_fill_line and fill_line, which dynamically update with respect …

Total answers: 1

Change the Background color of a Gtk Toglebutton in Python

Change the Background color of a Gtk Toglebutton in Python Question: I’ve been looking for a few days for information on how to change the colour of widgets in Python/Gtk 3 but haven’t found much. What I specifically want to do is change the colour of ToggleButtons in CSS. The Gtk documentation is not help …

Total answers: 1

Troubleshooting Specific Button Visuals: How to Modify Individual Buttons Using CSS in Taipy

Troubleshooting Specific Button Visuals: How to Modify Individual Buttons Using CSS in Taipy Question: I’m new to Taipy and CSS and currently facing an issue where I’m unable to modify the visual appearance of specific buttons using CSS. Although I tried changing the ‘class_name‘ of a particular button in my .css file, it didn’t work …

Total answers: 1

CSS styling for Gtk Widgets not working (Python, Gtk4?

CSS styling for Gtk Widgets not working (Python, Gtk4)? Question: In my app I want some kind of profile picture a user can have. At first wanted to use libadwaita’s Avatar widget, but it cannot load images from a file, which is a feature that I need. So I thought I would just implement a …

Total answers: 1

Use python jinja to auto-increment Image id from SQL-Alchemy-DB served in html via flask

Use python jinja to auto-increment Image id from SQL-Alchemy-DB served in html via flask Question: I am trying to create a gallery.html which changes picture behaviour by image id e.g id="lightbox-1", id="lightbox-2", id="lightbox-3" and the gallery behaviour alters according to css, this works well using file paths as sample code highlight below: <div id="gallery"> <div><img …

Total answers: 1