CSS customized scroll bar in div

I thought it would be helpful to consolidate the latest information on scroll bars, CSS, and browser compatibility. Scroll Bar CSS Support Currently, there exists no cross-browser scroll bar CSS styling definitions. The W3C article I mention at the end has the following statement and was recently updated (10 Oct 2014): Some browsers (IE, Konqueror) … Read more

How to make button look like a link?

button { background: none!important; border: none; padding: 0!important; /*optional*/ font-family: arial, sans-serif; /*input has OS specific font-family*/ color: #069; text-decoration: underline; cursor: pointer; } <button> your button that looks like a link</button>

Style disabled button with CSS

For the disabled buttons you can use the :disabled pseudo class. It works for all the elements that have a disabled API (typically form elements). For browsers/devices supporting CSS2 only, you can use the [disabled] selector. As with the image, don’t put an image in the button. Use CSS background-image with background-position and background-repeat. That … Read more

Is it possible to set the stacking order of pseudo-elements below their parent element? [duplicate]

Pseudo-elements are treated as descendants of their associated element. To position a pseudo-element below its parent, you have to create a new stacking context to change the default stacking order. Positioning the pseudo-element (absolute) and assigning a z-index value other than “auto” creates the new stacking context. #element { position: relative; /* optional */ width: … Read more

Is CSS Turing complete?

You can encode Rule 110 in CSS3, so it’s Turing-complete so long as you consider an appropriate accompanying HTML file and user interactions to be part of the “execution” of CSS. A pretty good implementation is available, and another implementation is included here: body { -webkit-animation: bugfix infinite 1s; margin: 0.5em 1em; } @-webkit-keyframes bugfix … Read more

Superscript in CSS only?

You can do superscript with vertical-align: super, (plus an accompanying font-size reduction). However, be sure to read the other answers here, particularly those by paulmurray and cletus, for useful information.

Placing Unicode character in CSS content value [duplicate]

Why don’t you just save/serve the CSS file as UTF-8? nav a:hover:after { content: “↓”; } If that’s not good enough, and you want to keep it all-ASCII: nav a:hover:after { content: “\2193”; } The general format for a Unicode character inside a string is \000000 to \FFFFFF – a backslash followed by six hexadecimal … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)