Can you customize the alert box in userChrome.css? [duplicate] - css

This question already has answers here:
How to change the style of alert box?
(13 answers)
Closed 1 year ago.
I recently discovered FireFox's userChrome.css where you can cutsomize about everything with CSS. I tried googling how I can customize the alert box (when I use 'alert()') but I can't find anything. Is this possible?

Welcome to StackOverflow, Normal! According to this answer, Javascript alert boxes are system objects and not modifiable by CSS. However, you should rarely encounter one while using Firefox, and if you're in the process of writing a webextension, it's much better to write your own notification or popup.

Related

weburl with special CSS in it? [duplicate]

This question already has answers here:
How does `#:~:text=` in URL works to highlight text?
(2 answers)
What exactly is the `#:~:text=` location hash in an URL? [closed]
(1 answer)
Closed 3 months ago.
By adding the code #:~:text=[TEXT TO HIGHLIGHT] after a URL, the text is highlighted by browsers (I think all, except firefox).
For example, see how the "Top question" text is highlighted on the stackoverflow home page:
https://stackoverflow.com/#:~:text=Top%20Questions
I think it's some kind of special CSS for browser.
Does anyone know how and where this feature is documented?

using a div to blur an image behind it? [duplicate]

This question already has answers here:
How to use CSS (and JavaScript?) to create a blurred, "frosted" background?
(10 answers)
Closed 9 years ago.
Is it possible to code a div to enable it to blur whatever image is under it?
something like this:
Could this be done somehow with -webkit maybe?
Not with CSS on its own, but you can pull a similar effect off with Canvas and the StackBlurforCanvas library. See this
UPDATE: Looks like backdrop-filter was recently introduced to Webkit nightly, so eventually we'll be able to do this with CSS only. Yay!
Unfortunately this can't be done purely using CSS. Although webkit-filter supports blur, it doesn't support blurring anything other than the element that it applies to.
There is a more hacky way to do this, described here - http://css-tricks.com/blurry-background-effect/

Generalizing INPUT fields cross-browser [duplicate]

This question already has answers here:
How to align checkboxes and their labels consistently cross-browsers
(40 answers)
Closed 9 years ago.
Is there a CSS (non-javascript) way to make input fields (text/textarea/password) shown the same way cross-browsers (from IE7+ and all other common browsers (safari, chrome, firefox)) ?
There is some great code you should check out. It has a polyfill for older browsers, but it will make all of your form fields look pretty close. You can use just the CSS portion and it is still pretty awesome. It's called Formalize. It is not identical in every browser but it's pretty close.
If you are worried about pixel perfect similarity you will have to use a javascript like Select2 or Chosen since select fields are usually the elements that vary the most between browsers. You could also take a look at Twitter Bootstrap. They already have a lot of work done for you. Good luck!

Styling scroll bars with CSS [duplicate]

This question already has answers here:
CSS customized scroll bar in div
(20 answers)
Closed 7 years ago.
I tried searching online but I didn't find any good sources on this. Is there a way to style scroll bars with pure CSS so that it is compatible with a maximum number of browsers?
You can style scrollbars in Internet Explorer and Webkit only.
Note that these are not standard properties.
However, you can achieve this with JavaScript. One project that does this is jScrollPane.
Adding my 2 pence a little late, but if you really want to style them I would suggest trying http://jscrollpane.kelvinluck.com/. It's not a pure CSS solution like you are looking for but is a solution of sorts.

CSS file-input hide path [duplicate]

This question already has answers here:
Closed 11 years ago.
Possible Duplicate:
How to hide text field in Html File Upload
Hi!Is it possible to hide the input-file path keeping just the browse button?
thanks
Luca
Unfortunately the file input isn't style-able, and it shows differently in each browser. So any solutions are sort of hacky, to say the least.
One solution is to place an image behind the input, and setting it's opacity to 0. See here for the tutorial that I follow.

Resources