Topics Search

CSS Inheritance, The Cascade And Global Scope

CSS Inheritance, The Cascade And Global Scope
Views: 2
I’m going to revisit inheritance, the cascade and scope here with respect to modular interface design. I aim to show you how to leverage these features so that your CSS code becomes more concise and self-regulating, and your interface more easily extensible.
Sponsored Links:

Similar posts...


Cascade : an important concept

Cascade : an important concept Icon
A set of predefined rules that determine the order of style to an HTML element if more than one styles are defined for one element. CSS cascade is an important concept in CSS, in fact it represents the first letter of CSS. Learn what CSS is, how it works, and how to use it.

Dealing with the Cascade and Specificity

Dealing with the Cascade and Specificity Icon
One of the things that I enjoy covering in my workshops is how to deal with managing the CSS cascade. We all have different techniques that we use and each come with their pros and cons. The cascade is the rule-based system that rendering engines use to decide what properties should apply to an element when multiple rules are declared for the same element.

Getting Started with CSS

Getting Started with CSS Icon
Find out how CSS evolved, how it’s applied to a page, and how to identify elements.​ What is CSS? Basic element selection. Applying CSS to pages. CSS inheritance. 56-Minute video tutorial

The Benefits of Inheritance via @Extend in Sass

The Benefits of Inheritance via @Extend in Sass Icon
Organizing CSS stylesheets has become crucial to styling large scale websites effectively, but stylesheets in our projects have been getting larger, more complex and harder to maintain as they develop. This is where Sass comes in to make everything simpler. For those who have yet to explore Sass, it is an extension of CSS. It provides features for us that do not exist in native CSS such as expressions, variables, nesting, mixins (Sass’ name for functions), inheritance, and more.

Complex CSS Selectors

Complex CSS Selectors Icon
Selectors are one of, if not, the most important parts of CSS. They shape the cascade and determine how styles are to be applied to elements on a page.
Up until recently the focus of CSS never really touched on selectors. Occasionally there would be incremental updates within the selectors specification, but never any real ground breaking improvements. Fortunately, more attention has been given to selectors as of late, taking a look at how to select different types of elements and elements in different states of use.

Functional Wrappers in Sass

Functional Wrappers in Sass Icon
I am not a big fan of having global variables all over the place, no matter the language. In Sass, as in CSS, we have nothing but a global namespace (although latest Sass versions progressively provide more scoping features). It’s like a house with a single room: no matter how hard you try to organize your furniturs, at the end of the day there is still only a single room in the house.

CSS Rules : Using Selectors

CSS Rules : Using Selectors Icon
CSS selectors are the part of CSS rules that determine what HTML elements that are affected by the CSS rule. There are several different types of CSS selectors. Both CSS 1.0, CSS 2.1 and CSS 3.0 added selectors to the CSS standard. The rest of this text will go through these CSS selectors.

Creating CSS Tooltip

Creating CSS Tooltip Icon
CSS Tooltip: It is an information shown on a page when we hover on any text, and we find a small box opening This is a tooltip. CSS Tooltip is made with the help of HTML and CSS only, we havent used JQUERY for making this tooltip. CSS Hover effect is one of the most widely used event, css hover when coded with css animation can create stunning effects on any webpage. CSS Tooltip is a small example where we will be using CSS Hover effect.

Using CSS counters

Using CSS counters Icon
CSS counters are, in essence, variables maintained by CSS whose values may be incremented by CSS rules to track how many times they're used. This lets you adjust the appearance of content based on its placement in the document. CSS counters are an implementation of Automatic counters and numbering in CSS 2.1.

How to get started with css shapes

How to get started with css shapes Icon
The web has typically been a place of boxes and rectangles but an emerging CSS specification is going to change that. In this article I’ll introduce you to CSS Shapes, explaining what they are and the core concepts you need to start using them. WHAT ARE CSS SHAPES? The CSS Shapes specification describes geometric shapes for us in CSS...