background preloader

Type Rendering

Type Rendering
Related:  html/cssCSS3

Beginner's Guide to Application Cache Introduction It's becoming increasingly important for web-based applications to be accessible offline. Yes, all browsers can cache pages and resources for long periods if told to do so, but the browser can kick individual items out of the cache at any point to make room for other things. HTML5 addresses some of the annoyances of being offline with the ApplicationCache interface. Using the cache interface gives your application three advantages: Offline browsing - users can navigate your full site when they're offline Speed - resources come straight from disk, no trip to the network. The Application Cache (or AppCache) allows a developer to specify which files the browser should cache and make available to offline users. The cache manifest file The cache manifest file is a simple text file that lists the resources the browser should cache for offline access. Referencing a manifest file To enable the application cache for an app, include the manifest attribute on the document's html tag:

Prefix free: Break free from CSS vendor prefix hell! -prefix-free lets you use only unprefixed CSS properties everywhere. It works behind the scenes, adding the current browser’s prefix to any CSS code, only when it’s needed. The target browser support is IE9+, Opera 10+, Firefox 3.5+, Safari 4+ and Chrome on desktop and Mobile Safari, Android browser, Chrome and Opera Mobile on mobile. If it doesn’t work in any of those, it’s a bug so please report it. In older browsers like IE8, nothing will break, just properties won’t get prefixed. Test the prefixing that -prefix-free would do for this browser, by writing some CSS below: Properties/values etc that already have a prefix won’t be altered. It’s not ideal, but it’s a solution, until a more intuitive way to deal with these cases is added in -prefix-free. Please note that in unsupported browsers like IE8, no such class will be added. You can exclude a file from being prefixed by adding the data-noprefix attribute to the <link> or <style> element. Firefox (and IE?) Get the jQuery plugin now:

How to Make Beautiful Gradient Typography with Photoshop In this Photoshop type treatment tutorial for beginners, you’ll discover a quick and easy process for making captivating gradient text. Be sure to check out the Gradient Typography in Web Design showcase for inspiration. Final Result Below, you can see what we’ll be creating together. Set up the Photoshop document 1 To start, let’s set up the Photoshop document. Design the background of the text 2 We’ll use a dark blue background. 3 We’ll apply a color overlay layer style onto the Background layer. 4 Change the color overlay by clicking on the Set color of overlay option which will open the Select overlay color dialog box for you to choose your colors in. 5 In the Select overlay color dialog box, choose a dark color. Create a lighting effect in the background 6 The background should now be a dark blue color. 7 Set your Foreground color in the Tools Panel to white (#ffffff). 8 In the Options bar, open the Brush Preset picker by clicking on the downward pointing arrow. Centering the text

HTML5 Please Flexible CSS cover images I recently included the option to add a large cover image, like the one above, to my posts. The source image is cropped, and below specific maximum dimensions it’s displayed at a predetermined aspect ratio. This post describes the implementation. Demo: Flexible CSS cover images Known support: Chrome, Firefox, Safari, Opera, IE 9+ Features The way that the cover image scales, and changes aspect ratio, is illustrated in the following diagram. The cover image component must: render at a fixed aspect ratio, unless specific maximum dimensions are exceeded;support different aspect ratios;support max-height and max-width;support different background images;display the image to either fill, or be contained within the component;center the image. Aspect ratio The aspect ratio of an empty, block-level element can be controlled by setting a percentage value for its padding-bottom or padding-top. Changing that padding value will change the aspect ratio. Maximum dimensions Background image Final result

25 Print Ads Featuring Excellent Use Of Typography Typography is everywhere, from the web to the print industry. In fact, there’s a lot of talk about beautiful typography in web design, but let’s not forget about the print industry – this is where it all comes from. Today we’re showcasing 25 excellent print ads that feature great typography. About the Author Tom is a freelance writer who blogs for a specialist in HP Laserjet cartridges based in Manchester, England.

10 Awful IE Bugs and Fixes Introduction Everyone has a story to tell when dealing with Internet Explorer. As a developer I have faced numerous bizzare problems with IE and sometimes you just want to bang your head against the wall! However, as time goes by, we slowly learn from mistakes (well, sometimes it's not our fault, it's IE!!!) and start to adapt and understand IE's weird behaviors. We have to because there is still a considerable number of IE6 users. There are a lot of campaigns out there to protest against IE6. Right, Back to reality, I have listed all the problems that I have encountered before into a list for future reference. 1. Just before I wrote this article, I encountered this bug. There are quite a lot of solutions for it, but none of them work to me (I can't use some of the methods because of the complexity of the website.), so I used a really hacky method. However, from a website called Hippy Tech Blog I found online. 2. SolutionAdd position relative to the parent element. 3. Solution 4. 5. 6.

Multi-Device Layout Patterns Through fluid grids and media query adjustments, responsive design enables Web page layouts to adapt to a variety of screen sizes. As more designers embrace this technique, we're not only seeing a lot of innovation but the emergence of clear patterns as well. I cataloged what seem to be the most popular of these patterns for adaptable multi-device layouts. To get a sense of emerging responsive design layout patterns, I combed through all the examples curated on the Media Queries gallery site several times. I looked for what high-level patterns showed up most frequently and tried to avoid defining separate patterns where there were only small differences. Mostly Fluid The most popular pattern was perhaps surprisingly simple: a multi-column layout that introduces larger margins on big screens, relies on fluid grids and images to scale from large screens down to small screen sizes, and stacks columns vertically in its narrowest incarnations (illustrated below). Column Drop Layout Shifter