background preloader

Css

Facebook Twitter

Easing Functions Cheat Sheet. The Definitive Guide to Using Negative Margins – Smashing Magazine. Since the recommendation of CSS2 back in 1998, the use of tables has slowly faded into the background and into the history books.

The Definitive Guide to Using Negative Margins – Smashing Magazine

Because of this, CSS layouts have since then been synonymous with coding elegance. Out of all the CSS concepts designers have ever used, an award probably needs to be given to the use of Negative Margins as being the most least talked about method of positioning. It’s like an online taboo—everyone’s doing it, yet no one wants to talk about it. 1. Setting the record straight. CSS Rule Priorities. The basic rule of HTML, CSS, and JavaScript is that the code is applied from the top to the bottom of the document.

CSS Rule Priorities

Sometimes the lack of understanding of the CSS rule priorities can cause a result you do not expect, as illustrated in the figure below, in which a font color is applied to a black background. Figure: Expected and actual result of applying a font color Basic CSS Rules When creating a CSS document, the following rules apply: Keeping these rules in mind, you can use any of the following ways to achieve the expected result illustrated in the figure above: Using CSS with HTML There are various ways to connect CSS with HTML. In the following example, the applied order of the CSS elements is as follows:

Z-index

Add Rules to Stylesheets with JavaScript. Update:Rewrites made to accurately represent current practice for stylesheet injection.

Add Rules to Stylesheets with JavaScript

Since we're using so much JavaScript in our web applications these days, we're looking for more ways to keep them fast. We use event delegation to keep event listening efficient, we use function debouncing to limit the number a times a given method can be used, use JavaScript loaders to load only the resources we need, and so on. Can I use... Support tables for HTML5, CSS3, etc. Using CSS flexible boxes - Web developer guide. The CSS3 Flexible Box, or flexbox, is a layout mode providing for the arrangement of elements on a page such that the elements behave predictably when the page layout must accommodate different screen sizes and different display devices.

Using CSS flexible boxes - Web developer guide

For many applications, the flexible box model provides an improvement over the block model in that it does not use floats, nor do the flex container's margins collapse with the margins of its contents. Many designers will find the flexbox model easier to use. CSS Flexible Box Layout Module Level 1. Abstract The specification describes a CSS box model optimized for user interface design.

CSS Flexible Box Layout Module Level 1

In the flex layout model, the children of a flex container can be laid out in any direction, and can “flex” their sizes, either growing to fill unused space or shrinking to avoid overflowing the parent. Both horizontal and vertical alignment of the children can be easily manipulated. Nesting of these boxes (horizontal inside vertical, or vertical inside horizontal) can be used to build layouts in two dimensions. CSS is a language for describing the rendering of structured documents (such as HTML and XML) on screen, on paper, in speech, etc. Vertical centering of elements in HTML. Published 1/18/2015.

Vertical centering of elements in HTML

Myth Busting: CSS Animations vs. JavaScript. The following is a guest post by Jack Doyle, author of the GreenSock Animation Platform (GSAP).

Myth Busting: CSS Animations vs. JavaScript

Jack does a lot of work with animations in the browser and has discovered that the generic opinion that "CSS is faster" just isn't true. It's more than that, as well. I'll let him explain. Once upon a time, most developers used jQuery to animate things in the browser. Fade this, expand that; simple stuff. The most widely-acclaimed solution was CSS Animations (and Transitions). The 30 CSS Selectors you Must Memorize. CSS Vocabulary.

CSS Diner - Where we feast on CSS Selectors! 8 Awesome CSS Loading Spinners. CSS EXAMPLES Archives - Fivera.net. Before i start i would like to introduce you to my dear friend Codepen You can read more about CodePen in this article Now lets get started with some cool CSS 3D Transforms CSS 3D transform Property Definition and Usage The transform property applies a 2D or 3D transformation to an element.

CSS EXAMPLES Archives - Fivera.net

Css3 Pattern Examples - Live Editable Showcase - Fivera.net. Home » css examples » Css3 Pattern Examples – Live Editable Showcase Css3 pattern examples – Live Editable showcase.

Css3 Pattern Examples - Live Editable Showcase - Fivera.net

Ellipse my text… You may be starting to notice a trend from my recent articles here on HTML5Hub.

Ellipse my text…

I’m a JS snob by trade, but by association I have to deal with my fair share of CSS issues. Introducing LiveStyle: Better, Stronger And Smarter CSS Live Reload. In the past, we featured some exciting tools and libraries: PrefixFree1, Foundation2, Sisyphus.js3, GuideGuide4, Gridpak5, JS Bin6 and CSSComb7. All of them have been developed and released by active members of the Web design community as open-source projects. Today, we present LiveStyle, a plugin for live bi-directional (editor ↔ browser) CSS editing of the new generation!

— Ed. Tools for live CSS editing aren’t new these days. The Difference Between :nth-child and :nth-of-type. 10 Rock Solid Website Layout Examples. Keeping It Simple Page layout is equal parts art and science. 100+ Useful Bookmarklets For Better Productivity. In a nutshell, bookmarklets are small little applications you can place as browser’s bookmark bar and they each perform a specific function, depending on what they are coded for. Bookmarklets are usually written in Javascript and they are extremely easy to install/remove. Bookmarklets work in most common used browsers like Firefox, Opera and Safari but probably lesser support in Internet Explorer. Understanding CSS Filter Effects. LiveReload. 37 Fresh jQuery Image And Gallery Display Solutions. jQuery is already very popular because it is very fast and concise Javacript library simplifing and different event handling, smooth animation with very little code.

Original Hover Effects with CSS3. Using jQuery for Background Image Animations. After reading Dave Shea's article on CSS Sprites using jQuery to produce animation effects, I felt like playing around with things to see what could be done but accomplish it with a simpler HTML structure (no need for adding superfluous tags) and simpler code, too.