background preloader

CSS Almanac

CSS Almanac

http://css-tricks.com/almanac/

Related:  Faire un site en JScss

6 Methods For Vertical Centering With CSS Centering elements vertically with css is something that often gives designers trouble. There are however a variety of methods for vertical centering and each is fairly easy to use. Today I want to present 6 of those methods. I’ve usually skipped over the topic of vertical centering, since there are some good posts already out there that are easy enough to find, but recently Bikram commented requesting a tutorial on vertically centering so I thought why not. You can view demos of each of the methods below by clicking here. Clicking the images above each section will also take you to that specific demo.

CSS - Smashing Magazine Today Smashing Magazine turns eight years old. Eight years is a long time on the web, yet for us it really doesn't feel like a long journey at all. Things have changed, evolved and moved on, and we gratefully take on new challenges one at a time. To mark this special little day, we’d love to share a few things that we’ve learned over the last year about the performance challenges of this very website and about the work we’ve done recently. If you want to craft a fast responsive website, you might find a few interesting nuggets worth considering. – Ed. Improvement is a matter of steady, ongoing iteration.

Hover.css - A collection of CSS3 powered hover effects All Hover.css effects make use of a single element (with the help of some pseudo-elements where necessary), are self contained so you can easily copy and paste them, and come in CSS, Sass, and LESS flavours. Many effects use CSS3 features such as transitions, transforms and animations. Old browsers that don't support these features may need some extra attention to be certain a fallback hover effect is still in place. Licenses Hover.css is made available under a free personal license and paid commercial license. The Free Personal License allows you to use Hover.css for personal use only.

CSS Buttons: Tutorials and examples Creating buttons with CSS is one of the most experimented-with web design techniques around. Examples and tutorials abound. The biggest recent trend in CSS button design seems to be eliminating images, especially background images, from buttons.

Building A RESTful PHP Server: Understanding the Request Once upon a time, what seems like a lifetime ago, I was away for a couple of weeks, and I wrote a series of posts about serving RESTful APIs from PHP to keep my blog going while I was away. Fast forward a few years and those posts are outdated and still wildly popular - so I thought it was about time I revisited this and showed how I'm writing RESTful PHP servers today! In the first part of this (probably) 3-part series, we'll begin with the basics. It might seem boring, but the most important thing to get right with REST is parsing all the various elements of the HTTP request and responding accordingly.

CSS3 Transform to Matrix Filter converter This is the hardest of all the transform functions to understand unless you are mathematically gifted. However, for those who are stubborn, geeky, or both, a brief explanation follows. If you don't undertand everything below, don't fret — you'll probably never use this function. This function is almost the direct equivalent to Microsoft's Matrix Filter. These first four values, a , c , b and d , correspond to the first four values of Microsoft Matrix Filter, M11 , M12 , M21 and M22 . In other words, this statement

CSS Layout Generator This is really just a step in the right direction, you still have a lot to do before your site is ready to go live. If you are just starting out, learning to do it yourself, by hand, in a simple text editor can be very rewarding, although it won't be easy. Below is some information that will help you on your journey, good luck. Layout Hints These simple tips may save you from having to use complicated hacks on your site. Design in the browser with web fonts and real content by Aral Balkan One of the iconic representations of the digital age is an image of the ubiquitous digital screen, stereotypically represented as a grid of brightly-lit pixels. This, like many of our other traditional perceptions of digital and interactive experiences, are either changing or being replaced altogether as we enter the post-PC era.

CSS Links - CSS tutorial CSS has several options for redefining the style of links. As mentioned in the above table, there are four different selectors with respect to links. You can specify whatever style you'd like to each of these selectors, just like you'd do with normal text. The four selectors are: Demo of a simple CRUD RESTful PHP service used with AngularJS and MySQL REST represents Representational State Transfer. For web applications REST API is a good architectural choice for the communication between the app and the server. This makes sharing data between different devices and apps easy. Implementing REST is simpler compared to other methods like SOAP, CORBA, WSDL. In this tutorial we will create a RESTful web service using PHP. Also we will create a Customer Manager Application using AngularJS as front end which will consume this web service.

CSS Template Tutorial Slicing + Coding Header CSS Template Tutorial – Slicing + Coding Header Welcome to the slicing and coding tutorial for the header. In this part you will slice each image used for the header and logo and code it using CSS and XHTML. Single Page Site with Smooth Scrolling, Highlighted Link, and Fixed Navigation - Call Me Nick Get Source View Demo In this lab, I’m going to demonstrate how to create a fixed navigation, single page site with smooth scrolling, and highlighting the navigation link depending on which section is currently being viewed. This technique is great for single page sites that want to pack in lots of goodies on one page, but use a navigation with cool scrolling to section it off. Let’s get started. Getting Started With The Markup The markup is fairly easy.

CSS Tools: Reset CSS The goal of a reset stylesheet is to reduce browser inconsistencies in things like default line heights, margins and font sizes of headings, and so on. The general reasoning behind this was discussed in a May 2007 post, if you're interested. Reset styles quite often appear in CSS frameworks, and the original "meyerweb reset" found its way into Blueprint, among others. Styling Scrollbars to Match Your UI Design This tip will guide you in improving the look and feel of scrollbars to match your UI design. We'll take a look at what WebKit browsers offer us in terms of CSS, plus we'll use a jQuery fallback to cater for other browsers. Quick Note About Browsers When we refer to Webkit-based browsers we're essentially talking about Apple Safari and Google Chrome. Together they currently hold more than 40% of the overall desktop browser market.

Related: