Is there a -moz equivalent of ::-webkit-scrollbar? [duplicate] - css

This question already has answers here:
Custom CSS Scrollbar for Firefox
(16 answers)
Closed 8 years ago.
I have used ::-webkit-scrollbar to hide scrollbars on an element in Safari/Chrome with the following CSS:
#element::-webkit-scrollbar { width:0 !important; height:0 !important }
Is there any way of accomplishing the same in Firefox?

If you just want to hide scrollbars, better use
overflow: hidden

Related

extra space between A and IMG elements [duplicate]

This question already has an answer here:
Removing spacing under the image
(1 answer)
Closed 6 years ago.
i have this code (https://jsfiddle.net/26gvaekf/1/) and want that A height was exactly at IMG boundaries. However, there is small space after IMG
can anybody explain, why this happens? and which css property i should use (only not float one).
DEMO
css
img {
vertical-align:top /* img are default bottom aligned make it to top */
}
/* for demonstration purpose */
a {
display: inline-block /* to cover your img completely */
}

CSS transition between "height:50px" and "height:auto" [duplicate]

This question already has answers here:
How can I transition height: 0; to height: auto; using CSS?
(41 answers)
Closed 7 years ago.
I have a DIV with a default fixed height and an overflow:hidden property to hide content that is to broad to be contained inside it.
div
{
height:50px;
overflow:hidden;
}
I would like to autoexpand this DIV hovering it with mouse but I have the problem that CSS transition works only with a fixed height and not with an auto height.
Here a JsFiddle that illustrate two cases.
I know that reason is that for some reason browrse does not know "how many px are auto height" but is there exist a workaround (maybe using max-height property...) to avoid need of jQuery?
When you give height: auto in the animation, it doesn't know what to do. As it cannot calculate the height on the fly. So, initialize the height using jQuery this way:
$(function () {
$(".auto_height").each(function () {
$(this).data("height", $(this).height());
});
});
And in CSS, give:
height: attr(data-height);

IE 8 : Mysterious Box coming around Radio Button [duplicate]

This question already has answers here:
Hidden radio button but box around it in ie8
(3 answers)
Closed 8 years ago.
In the below image - you see a mysterious box coming around Radio Button.
Any ideas what can be done ?
Below is the styling applied :
.inline-radio {
padding-top: 0px;
}
.inline-radio input[type="radio"] {
position: absolute;
opacity: 0;
}
Just from looking at your image, it looks like it has been ripped out of the layout as a result of position: absolute. One thing you could do, is display: inline instead. Not sure there is much to gain from absolute positioning without a top and left property.

Webkit: Hide vertical scrollbar. Works in Chrome & Safari not in Firefox [duplicate]

This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
Hidden scrollbars in Firefox (allows scrolling but just no scrollbar)
This works fine in Chrome and Safari:
iframe::-webkit-scrollbar
{
display: none;
}
But the vertical scrollbar does not hide in Firefox.
I cannot change the iframe code so needs to be purely in CSS.
UPDATE: I added the following along with the above to solve the problem. Both blocks are required:
iframe
{
overflow: hidden;
}
However, this approach will likely constrain my ability to granularly control x or y scrollbars elsewhere.
Oh, well.
This should help:
<style>
.noscroll{width:200px; height:200px; overflow-y: hidden;}
</style>
<iframe src="http://microsoft.com" class="noscroll" scrolling="no"></iframe>

CSS3 Box-Shadow Showing Behind Sibling Div Element [duplicate]

This question already has answers here:
Why does z-index not work?
(10 answers)
Closed 7 years ago.
I'm using:
box-shadow: 0px -1px 0px #333333;
on my footer but it's hiding behind or disappearing where the div before it is... hard to explain but here's what it looks like: http://cl.ly/7HLy
Is there a way do have the box-shadow be on top of the other div before the footer? I've tried adding a z-index but it doesn't work.
I'll repeat my comment here since it solved the problem.
When using z-index you should use position: relative;

Resources