How to change scrollbar style in CSS? [duplicate] - html

This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
Change style scrollbar div for my site
css scrollbar style cross browser
I wanted to know how to change the style/look/image of the web scrollbar via CSS? Is it even possible?

I don't think it's possible (in all browsers) with CSS.
It can be achieved with JavaScript though.

There is no standard CSS for doing this though IE and Opera have proprietary means of doing so. The reason is you would be changing the user's browser look which is not the purpose of CSS.

It is not possible to do this via CSS due to different browser engines/APIS. however you might want to use the jQUERY Solution

A good post on how to do this for Safari/Chrome: http://css-tricks.com/custom-scrollbars-in-webkit/ Internet Explorer users don't deserve good design anyway, right? :P

Here you go , this script degrades nicely in most browsers.
JqueryScrollpane

Related

Layout website IE8 and lower looks wrong CSS3 [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions concerning problems with code you've written must describe the specific problem — and include valid code to reproduce it — in the question itself. See SSCCE.org for guidance.
Closed 9 years ago.
Improve this question
My website PackageNow.net is based on HTML5 and CSS3. All other browsers do not give any problems but IE8 and lower do.
Website wrong view
I tried to apply the PIE solution, and tried to apply different CSS styles attached to the website if IE is lower then 9
The website should look like this...
Website correct view
I would understand if the layout would be a little but different, but this is not normal...
Please help because some of my customers still have IE8 and below. I added a script that says that there browser is out of date, but I need to provide a website that works. otherwise i lose customers.
Sorry for my bad english, hope you understand what i try to say.
Thanks! Roy
Yes that's probably the expected behaviour (depending on what you're doing) and is perfectly normal for IE8.
in IE8 a lot of HTML5 mark-up / elements won't be understood batively by the browser and it won't know if it's supposed to display in-line or as block and you need to provide the HTML5 shim to deal with those.
Also there are very few supported CSS selector rules in IE8 and a list can be found at Selectivizr how getting support for thise. Of course you'll then need something like JQuery to provide that support
Also some of the :pseudo attributes just aren't supported and you need to write JavaScript to emulate these and add appropriate style rules too..
There are many other reasons why IE below IE9 does not render a HTML5 / CSS3 layout. There are hardly any supported CSS3 features in in IE8 (even with PIE which only does some of them). If you take a look at Browser Support Reference
you'll see what is an is not support by the browser, without a polyfill to assist..
luckily developers have made lots of other feature available in HTML5 through the use of Helpful Polyfills, so check out the list to see if you need some of these.

Edit CSS Styling of HTML Select Button [duplicate]

This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
Is it possible to style a select box?
I would like to know if it is possible with CSS to change the styling of a HTML select field.
I want to make the button with the arrow inside transparent but keep the arrow there, so basically removing the button look of the arrow.
That is not possible to accomplish cross browser with only CSS.
To get nice looking select fields you must use javascript.
There are a couple libraries for this:
http://www.emblematiq.com/lab/niceforms/
http://uniformjs.com/
I am pretty sure you can find more if you just google for it.
http://bavotasan.com/2011/style-select-box-using-only-css/
be sure to read the comments too, this will probably not work in old(er) browsers, jquery is the better solution

Click header and expand text without using JavaScript / jQuery

As pointed out in the title, my question is very simple: is there any way that I can achieve clicking on a header (title) and expand (and collapse) a text associated with it, without using JavaScript nor jQuery? Is there any browser compatible way of doing this (IE 6+ proof)?
I've made a very simple HTML+CSS site for a conference, and I would like to use JS only if necessary. So, I'm just asking if I can do it sticking only to HMTL/CSS, in a compatible way, of course.
The few solutions I've found are old or incompatible with some browser versions.
IE6-proof pure CSS solution?
NO
[Leave the dead rest in their graves, don't try to make them run a marathon. That's what you're doing when you're asking for IE6 to do things like this.]
IE7/8?
Yes, there is one solution (the principle is the same one used in this older demo of mine), but it is not persistent (meaning that if you click anywhere else on the page, your expanded content will collapse) and it behaves a bit weird in IE7 (meaning that you have to hover off the clicked element after you click it in order to see your content expanding).
IE9+ and the other browsers?
YES! Also persistent. Same principle as the one I used here.
JavaScript/ jQuery method?
Yes! See this: a jQuery version of the same demo.
You can do simple Hover dropdown menus with just HTML & CSS which are supported cross browser:
http://jsfiddle.net/fkS2z/
You can improve on this with fades or slidedowns with CSS transitions which are not supported in lower version of IE:
http://jsfiddle.net/N9fDy/1/
Not so much with clicking though.

the navigation of my project does not work in the right way in mozilla how can i solve this problem? [duplicate]

This question already has an answer here:
Closed 11 years ago.
Possible Duplicate:
how can i set my project according to firefox?
My project works in internet explorer but in other browsers it does not work in the right style I tried firebug but I dont how I solve this problem or how can i create a menu which can work in all browsers.
The reason is most likely that you used non-standard or IE-specific HTML/CSS/JavaScript. Since you haven't posted any specifics the only thing I can suggest is starting off validating your HTML and CSS and correcting all errors.
http://validator.w3.org/
http://jigsaw.w3.org/css-validator/

How can I make CSS tabs with drop down menus without Javascript?

I need to make tabs that also have drop down menu and requirements are that they have to work without JavaScript. Is this possible and is there good example of this somewhere?
see this http://www.lwis.net/free-css-drop-down-menu/dropdown.nvidia.com.html
it's pure css . see the source code to understand.
This is built by Free css dropdown menu framework http://www.lwis.net/free-css-drop-down-menu/
Minimal JavaScript code only for IE 6 or earlier. Everything else is pure CSS.
if u need pure css in all browser including IE 6 try this
http://www.cssplay.co.uk/menus/new-dropdown.html
but it has some limitations
Edit:
This is also pure css menu.
http://www.grc.com/menu2/invitro.htm
This includes IE5.x, IE6, IE7's betas, all old and new Netscapes, Mozillas, Firefoxes (on PC and Linux platforms), Operas, Safari and many other Mac browsers
Here is one Solution
Try Suckerfish, Javascript is needed for Internet Explorer as older versions only support :hover on links.
Basically you need to use the hover pseudo class on the anchor tag. To avoid using javascript you need to make sure navigation is structured so the anchors can do this as in ie6 this is the only element that allows hover. So using CSS for the off state you set the element that contains the dropdown to display: none and then on the hover you set it to display: block;
It is actually fairly straightforward - the hard bit is positioning the drop down where you want it.