background preloader

CSS/SCSS

Facebook Twitter

Element Hiding Techniques in CSS. Hiding HTML elements from CSS is not a big deal; we do it instinctively until we learn accessibility and find a fundamental difference.

Element Hiding Techniques in CSS

This difference is to hide an element and its content entirely or hide an element but show its content to the screen readers. We know that hiding something is not just cosmetic, but for a lot of us, it is accessibility. We can create things which goal is to be invisible to the eye but visible for the readers. Of course, there are other areas where we want to know the differences between the hiding techniques, for example in the case of animation.

Animating the display property is not possible, so we should use the opacity, but doing this the hidden content stay actionable – if there clickable element, we can interact, or we can’t click through it – so we want to find a solution which usually is the visibility property. These are some examples from the life of the everyday front-end developer, and I think – as usual – that this is interesting.

CSS Grid

50 of Our Favorite CSS Libraries, Frameworks and Tools from 2017. How to make absolute positioned elements overlap their overflow hidden parent. I believe, every front-end developer encountered this situation, at least once.

How to make absolute positioned elements overlap their overflow hidden parent

Let's say you need to absolute position something… And then you try to move it in some direction, and boom it disappears… You forgot the parent was set to overflow:hidden and now your element is lost in the hidden infinite vacuum. Well, usually it ends by putting the absolute element outside of the annoying overflow:hidden parent, and you grumbling about how CSS sucks and so on… Actually you're quite right.

CSS do sucks a lot, even CSS3, I mean … ok no troll here :) 10 Snippets for Creating Unique CSS Background Effects. In modern web design backgrounds are big (both literally and figuratively).

10 Snippets for Creating Unique CSS Background Effects

With the advent of HD (and now 4K) displays, designers are creating backgrounds that take up loads of screen real estate. Why? Because they make for an incredible visual impact and help to tell a story. But there is so much more to backgrounds than simply throwing a photo or texture into a large space. A combination of CSS and the occasional bit of JavaScript power the creation of some amazing special effects. Let’s explore some of the unique ways in which designers are spicing up backgrounds. Breaking down CSS Box Shadow vs. Drop Shadow. By Geoff Graham On box model, filters, shadow Drop shadows.

Breaking down CSS Box Shadow vs. Drop Shadow

Web designers have loved them for a long time to the extent that we used to fake them with PNG images before CSS Level 3 formally introduced them to the spec as the box-shadow property. I still reach for drop shadows often in my work because they add a nice texture in some contexts, like working with largely flat designs. Not too long after box-shadow was introduced, a working draft for CSS Filters surfaced and, with it, a method for drop-shadow() that looks a lot like box-shadow at first glance. However, the two are different and it's worth comparing those differences.

Family.scss. Beautons – a beautifully simple button toolkit. CSS4 Variables and Sass by Jake Albaugh on CodePen. UPDATE April 2016: I wrote up a new approach for this with fallbacks CSS4 Variables with Fallbacks Using Sass.

CSS4 Variables and Sass by Jake Albaugh on CodePen

This might seem a bit premature, however I couldn’t help but start to think about how the new variable spec in CSS4 will inevitably bump uglies with our Sass tendencies in the near future. I’ve come up with an idea that will hopefully marry these two in an efficient and practical approach. #The CSS4 Spec. 3D CSS Shadow Text Tutorial. This easy CSS text shadow tutorial will show you step by step how to create 3D font with multiple css shadows by stacking multiple CSS3 text shadow properties, then go a step further and use the CSS text transform and CSS transition properties to make the 3D text pop out / zoom on hover!

3D CSS Shadow Text Tutorial

Please keep in mind this 3D CSS text shadow effect is pure CSS (No JavaScript) and the technique only fully works in modern browsers like Firefox, Chrome, Safari and Opera, It will fall back gracefully to plain text when viewed in any Internet Explorer browser. View Demo. What CSS prefixes should I use? Clippy — CSS clip-path maker. Text box with background per line and border at bottom line. Multi-Line Padded Text. By Chris Coyier On CSS This is one of those tricky CSS things that I see come up every few months.

Multi-Line Padded Text

I guess what better place to address it than CSS-Tricks eh? The situation involves ragged-right inline text. Like when a paragraph of text breaks to the next line whenever the next word won't fit (i.e. most text on the internet). You want to add a background behind that text which: Follows the ragged-right edgeIs padded along both the left and right edge of each line What you can't do is simply apply a background and padding to, say, the <p> element. You also can't simply apply the background and padding to a <span> or an inline element. CSS clearfix. CSS3.0 Generator. Conditional Comments - Internet Explorer - CSS Hack - Browser Hack - Hacks für browserüberfreifendes CSS-Design. CSS border gradients. Styling Checkboxes and Radio Buttons With CSS and JavaScript. This JavaScript and CSS will allow you to use custom images to style checkboxes, radio buttons and drop down menu select lists.

Styling Checkboxes and Radio Buttons With CSS and JavaScript

Have you ever wanted to use your own images for checkboxes, radio buttons or select lists? This script will let you do that. Easily. The unobtrusive script gracefully degrades, so if JavaScript is disabled, normal form input objects appear instead of your customized elements. This works flawlessly in Firefox, Safari, Internet Explorer 7, Opera and others. The example. RGBa & HSLa CSS Generator for Internet Explorer. How To Create a Trendy Flat Style Nav Menu in CSS. I’ve heard from a bunch of people who found my CSS drop down menu tutorial really useful, so today’s we’re going to build another menu with some fancy hover effects.

How To Create a Trendy Flat Style Nav Menu in CSS

With the Flat design trend being so popular we’ll use adopt this style for today’s menu by using bright solid colours and clean icons. We’ll be using various must-know CSS techniques so this is a great tutorial for any web designers learning the basics. Here’s the menu we’ll be building as part of this tutorial. It’s based on the oh-so-popular flat design trend with solid colours and neat square boxes. The clean icons are courtesy of the Linecons pack and the font we’ll be using via Google Webfonts is Dosis. CSS3 Menu. Free CSS Menu Maker. 40 Tiny Web-Based Tools & Apps for Working With CSS. Create CSS 3D Transform Card Flip Gallery. Equal Column Height With CSS. Ttraditionally, a website consists of the main section and a sidebar on the layout.

Equal Column Height With CSS

Commonly, the content that is contained in the main section could be longer than the sidebar, which makes the height of these two sections unequal. In some cases, we want the height to be equal. There are actually some solutions to this situation, and one that is frequently recommended is the Faux Column technique. View Demo. CSS 3D Editor. CSS True Titles by Tyler Gaw. CSS. Get the lowdown on the key pieces of Bootstrap's infrastructure, including our approach to better, faster, stronger web development. HTML5 doctype Bootstrap makes use of certain HTML elements and CSS properties that require the use of the HTML5 doctype. Include it at the beginning of all your projects.

CSS triangle generator. Layout — Chapter 2 — Magic of CSS — Adam Schwartz. In the previous chapter, we learned that each element in the page is a rectangular box. In this chapter, we will see how multiple boxes get laid out on a page. Block, inline, and inline-block With respect to layout, the display property has three values you should be most concerned with. Spend your time innovating, not replicating. Animating CSS-Only Hamburger Menu Icons. Get SourceView Demo Intro Hamburger menu icons have become a staple in many websites and web apps, and whether you like them or not, they are becoming a familiar and recognizable UI action button.

Users are associating this icon with the showing and hiding of menus, and its compact, space-saving nature makes it a desirable style, particularly on smaller screens. In the past, you may have created or downloaded an icon and dropped it into your document. This is all well and good, and if you’re using image sprites, then you’re on course for an easy implementation.

Today though, I’m going to show you how to create a CSS-only version of the famous hamburger menu icon. Csscss by zmoazeni. The "Other" Interface: Atomic Design With Sass. Advertisement Today, too many websites are still inaccessible. 50 Beispiele für geometrische Formen mit CSS3. Der Zweck von CSS ist es, die konkrete Darstellung (Farben, Layout, Schrifteigenschaften usw.) der Elemente eines Web-Dokumentes festzulegen. Neben verschiedenen Möglichkeiten, Farben und Schriften einbinden zu können, erlaubt CSS ebenfalls, Elemente detaillierter zu gestalten, frei zu positionieren oder mit CSS3 beeindruckende geometrische Formen und Figuren zu erstellen. Navigation options · CSS-Tricks/AnythingSlider Wiki. Battling BEM (Extended Edition): 10 Common Problems And How To Avoid Them. Advertisement Today, too many websites are still inaccessible. CSS3 Shapes.

Here you'll find a range off shapes all coded with just pure CSS3 code. Unfortunately not all shapes will render correctly in all browsers, currently only web browsers that support CSS3 will produce the correct geometric shapes. CSS Reference - A free visual guide to the most popular CSS properties. Online CSS3 Code Generator With a Simple Graphical Interface - EnjoyCSS. Block with eliptic border radius. Animation Generator. CSS3 Tools and Snippets. The Ultimate CSS Generator.

#javascript30

#dailycssimages. Flexbox. CSS animation.