What is a user agent stylesheet?

What are the target browsers? Different browsers set different default CSS rules. Try including a CSS reset, such as the meyerweb CSS reset or normalize.css, to remove those defaults. Google “CSS reset vs normalize” to see the differences.

Remove class using jQuery

Yip: Or remove them all first: If a class name is included as a parameter, then only that class will be removed from the set of matched elements. If no class names are specified in the parameter, all classes will be removed.

React.js inline style best practices [closed]

There aren’t a lot of “Best Practices” yet. Those of us that are using inline-styles, for React components, are still very much experimenting. There are a number of approaches that vary wildly: React inline-style lib comparison chart All or nothing? What we refer to as “style” actually includes quite a few concepts: Layout — how … Read more

Converts scss to css [closed]

If you click on the title CSS (SCSS) in CodePen (don’t change the pre-processor with the gear) it will switch to the compiled CSS view.

Making a

You asked for a link that looks like a button, so use a link and a button 🙂 This will preserve default browser button styling. The button by itself does nothing, but clicking it activates its parent link. Demo:

Customize Bootstrap checkboxes

Since Bootstrap 3 doesn’t have a style for checkboxes I found a custom made that goes really well with Bootstrap style. Checkboxes  Run code snippetExpand snippet Radio  Run code snippetExpand snippet Custom icons You can choose your own icon between the ones from Bootstrap or Font Awesome by changing [icon name] with your icon. For example: glyphicon glyphicon-remove for Bootstrap, or fa fa-bullseye for Font Awesome

Outline effect to text

There is an experimental webkit property called text-stroke in CSS3, I’ve been trying to get this to work for some time but have been unsuccessful so far. What I have done instead is used the already supported text-shadow property (supported in Chrome, Firefox, Opera, and IE 9 I believe). Use four shadows to simulate a stroked text:  Run code … Read more

CSS Background Opacity [duplicate]

Children inherit opacity. It’d be weird and inconvenient if they didn’t. You can use a translucent PNG file for your background image, or use an RGBa (a for alpha) color for your background color. Example, 50% faded black background: