Css – CSP and inline styles from color picker
I am using CSP on my website to keeps things locked down as much as possible. I have an HTML editor on the website, and I wanted to allow users to choose text colors from a color picker. This involves…
I am using CSP on my website to keeps things locked down as much as possible. I have an HTML editor on the website, and I wanted to allow users to choose text colors from a color picker. This involves…
I had to adapt a code written by someone else. Using Tailwind and Angular. I had to add an optional text line, so there would be 1 or 2 lines. Both lines should align just right of some title. And…
I would like to have the text 12345 to be vertically aligned with the avatar on the left. How to solve it first with means of ionic(while using grid) and if not possible, then with css? I've tried to set…
I'm struggling trying set the width to component in Angular. I'm using flex, maybe grid will help me with it, but i want to use flexbox to learn. Just to simplify, I have a page with a div that contains…
I have a group of form inputs that are displayed on a single line on larger viewports and collapses to a multi-line display on smaller viewports. On the single line display I want a cancel button at the end of…
I am working on a CSS Grid layout where all child elements (buttons) must have the same width and height. The number of columns should automatically adjust based on the content of the child elements. Each button has text with…
I'm trying to use CSS/HTML to create a multi-panel widget where users can advance through the different panels. Ideally the next button rests below the content, and doesn't move. To support this, I'd like to make it so that the…
I want to display the top of the image with the bottom part of the image hidden. The overflow is hidden but instead of displaying the image from top down, the image is being cut through the middle with a…
I have a simple react app (Vite project) app.tsx import "./common-styles.css"; export default function App() { return ( <div className="app"> <div className="interactive"> content content </div> </div> ) } with only 1 css file common-styles.css @property --interactive-color { syntax: "<color>"; inherits:…
**This is the HTML Part** <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Login</title> </head> <body style="background-color: rgb(0, 255, 195); text-align: center"> <div id="display"> <p style="color:black">Enter your Passcode:</p> <input id="passcode" type = "password"> <button onclick="checkValidity()">Enter↵</button> </div> <script…