Browser specific prefixes necessary CSS? [duplicate] - css

This question already has answers here:
What is the purpose of CSS prefixes? [duplicate]
(3 answers)
Closed 9 years ago.
I've always been wondering this: why are browser-specific prefixes necessary in CSS? Why can't all browsers use the same thing? What's stopping them from using a single standard?
(I might just be hopelessly naive here.)

These things are usually not (yet) an official standard, and the syntax may change in the future. For example, it happened with linear gradient and flexboxes. So the short answer is to avoid collision.

Related

Why chrome devtools showing this?Body color is not working [duplicate]

This question already has answers here:
How do I prevent my style from being overridden another style on a surrounding div?
(6 answers)
Closed 1 year ago.
why body color is not working?
and i am seeing this in devtools . the problem is marked on the picture.
i got the solution . just written this as base a{color:red}
This is no bug. The body color is overwritten by something else, as wOxxOm pointed out. You might wanna take a look at this Q&A.
Either you use the !important attribute in your CSS or give the specific part you want colored a more specific selector. The CSS styles priorities decline from specific to general.

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.

Fonts looking different in Photoshop and Browsers [duplicate]

This question already has answers here:
Closed 11 years ago.
Possible Duplicate:
Photoshop Mock Up Font isn't same as in HTML
Hi,
I have spent last 2 hours looking for a way to make fonts, in my case Arial, look identical to what they look like in photoshop. I mean I can't use a different font, it must be smooth Arial. While fonts with no anti-aliasing look decent and almost identical in most of the browsers compared to what they look like in photoshop, I can't think of a solution to mimic smooth anti-aliasing (and others as well, but it is not that crucial for them).
Is there a way?
You can use something like sIFR or typeface.js.

Resources