The top 20 CSS sites of 2012. Web Advent 2012 / Dealing with Email Image Blocking. You probably get a lot of email and even more newsletters. My HTML email newsletters are all mixed in with my plain-text emails, and when I’m going through my inbox, it’s a quick and efficient process. I want to be able to get the point of each email quickly. When I open an HTML email and see rows of blank outlined boxes, I immediately think, “this isn’t relevant or necessary to me; moving on.”
I very rarely decide to turn the images on. One alarming statistic found that 30% of recipients are unaware that images are even disabled in the first place! Email clients disable embedded images to protect you from spam. Spammers will use an image as a beacon; when downloaded, it signals that you have an active and valid address. Style the image’s alt text Many email designers are hip to adding an alt attribute to all important images, ensuring that — at the very least — text will show up when the image does not. One very simple way we do this at Etsy is with our logo. The code looks like this: HTML_CodeSniffer – Check Any HTML With The Given Web Standard.
HTML_CodeSniffer is a bookmarklet to check if a web page validates for the selected standard. The bookmarklet is open source, has a slick interface and currently comes with a set of 3 standards that enforce the Web Content Accessibility Guidelines (WCAG) 2.0. It displays the errors, warnings + notices and their details can still be viewed within the bookmarklet. The standards and their rules are hosted in the GitHub repository, so, once a new standard or rule is added by the developer, the bookmarklet will auto-update.
StackSlider: A Fun 3D Image Slider. An experimental image slider that flips through images in 3D. Two stacks resemble image piles where images will be lifted off from and rotated to the center for viewing. View demo Download source StackSlider is a highly experimental jQuery image slider plugin that explores a different and fun viewing concept for thumbnails, utilizing CSS 3D transforms and perspective. The idea is to navigate through two piles of images where the transition resembles an item being lifted off from the top of the stack and moved/rotated to the center of the container to be viewed. The demo features illustrations by Isaac Montemayor. Please note that this is highly experimental and not fully tested.
For using the plugin, an unordered list with the following structure is needed: The class “st-stack-raw” is only being used to hide the list when JS is enabled. The plugin can be called like this: Options The following default options are available: The easiest way to create your CSS sprites - SpritePad. .htaccess Files for the Rest of Us. .htaccess files are used to configure Apache, as well a range of other web servers. Despite the .htaccess file type extension, they are simply text files that can be edited using any text-editor. In this article, we'll review what they are, and how you can use them in your projects. Please note that .htaccess files don't work on Windows-based systems, although they can be edited and uploaded to a compatible web server, and on Linux-based systems they are hidden by default. In order to work with htaccess files locally, to see how they work and generally play around with them, we can use XAMPP (or MAMP) on the Mac - a package that installs and configures Apache, PHP and MySQL.
A .htaccess file follows the same format as Apache’s main configuration file: httpd.conf. A setting configured in an .htaccess file will override the same setting in the main configuration file for the directory which contains the file, as well as all of its subdirectories. A rewrite rule can be as simple as this: Workshop / Chrome Experiments. Unfortunately, either your web browser or your graphics card doesn't support WebGL. We recommend you try it again with Google Chrome. CSS Buttons with Pseudo-elements. In this tutorial, I'll show you how to create buttons with a twist, using just one anchor tag per button and the great power of CSS. View demo Download source Hola, amigos. For the last month or so, I’ve been experimenting with the power of CSS pseudo-elements, specially when it comes to mixing them with buttons and that way recreating some great effects that were only possible to do with sprites, in the past.
In this tutorial, I’ll show you how to create buttons with a twist, using just one anchor tag per button and the great power of CSS. The font used is ‘Open Sans’ by Steve Matteson. Disclaimer:I’ll not be using CSS vendor prefixes in this tutorial or else it would be crazy long, but you will find them in the downloadable files. I avoided CSS transitions since, right now, Firefox is the only browser that supports them on pseudo-elements. Markup Example 1 I think this is the easiest one, with a very regular CSS. Then, we create the gray container using the ::before pseudo-element. Example 2. Design - Welcome. HTML EMAIL BOILERPLATE v 0.5 updated 11/5. The first commented line is your dabblet’s title ✿ dabblet.com.
Expanding Text Areas Made Elegant. An expanding text area is a multi-line text input field that expands in height to fit its contents. This UI element is commonly found in both desktop and mobile applications, such as the SMS composition field on the iPhone. Examples can also be found on the web, including on Facebook, where it’s used extensively. It’s a good choice wherever you don’t know how much text the user will write and you want to keep the layout compact; as such, it’s especially useful on interfaces targeted at smartphones. Issue № 338 Despite the ubiquity of this control, there’s no way to create it using only HTML and CSS. While normal block-level elements (like a div, for example) expand to fit their content, the humble textarea does not, even if you style it as display: block.
Trawling the internet, you can find several attempts at creating expanding text areas, but most suffer from one or more of the following problems: The height is calculated by guessing where wrapping occurs based on the cols attribute.
With the site for BeerCamp at SXSW 2011 (2011.beercamp.com), we at nclud recognized an ideal opportunity to bend some rules and try something new. The BeerCamp at SXSW 2011 was an experiment in using CSS transforms to create a new interface design pattern. View hi-res In this tutorial, let’s build a Zoomable User Interface into a simple page. Our example page lists the services of a web development shop. Web development Front-end development CSS CSS3 Transforms Awesome! Heroku Breaks Through with Facebook Cloud Integration. Following hot on the heels of its recent announcement that it would add support for Java to the support already given to apps written in Ruby, Node.js and Clojure, Platform-as-a-service provider Heroku this morning announced a breakthrough partnership with Facebook that effectively allows anyone with a Heroku account to become an adept, cloud-based Facebook app developer.
To give SitePoint readers a head start, we’ve obtained permission to publish the following tutorial, drawing on functionality in Facebook that is only available from today. Let me hand you over to Adam Wiggins of Heroku. Getting Started with Your Facebook App on Heroku This guide is for Facebook developers who are creating apps on Heroku via the Facebook Cloud Services integration. It assumes no previous knowledge of Heroku. Heroku is a cloud application platform, not an old-fashioned web host, so some things may be unfamiliar to you. Create an App Fill out the captcha in the subsequent dialog and click Submit. Forman .env. Android Interaction Design Patterns |
CSS Selectors and Pseudo Selectors and browser support. This page has not been updated for some time and some of the browser versions are obsolete - I'm working on a better format for the page, so check back every now and then :) The following is a range of CSS tests of the most common browsers' support for selectors and pseudo selectors. The tests includes basic stuff from the good old days of CSS1 and funky stuff from the future (CSS3). If you feel like reading more about the selectors and which attributes they support, the W3C is the place to go! If you spot any errors (it happens to us all...) or have any comments, I'm on Twitter as @overflowhidden. Click here to see this page's history. :hover only works for a-elements in IE6. History (not complete): 2011.04.13: I've discovered a bug in Google Chrome regarding the adjacent selectors and created a test page to demonstrate the problem. 2010.03.18: Opera 10b3 replaced with Opera 10.5 beta.
The internet is our social network. | Friendika. What if social networks were more like email? What if they were all inter-connected, and you could choose which software (and even which provider) to use based purely on what they offered you? Now they are! Friendica is bringing them all together. All of these can be included in your Friendica "social stream" where you may interact with them using a familiar conversational interface - and perhaps arrange them into private conversation groups. This lets you easily separate what posts can be seen by your co-workers and your beer-drinking buddies. Note: Two-way and private communications are not yet available on all networks, and in a few cases these abilities are not possible due to limitations in the underlying communications formats. You wouldn't have to give up any of your existing friends.
Font sizing with rem. Determining a unit of measurement to size our text can be a topic of heated debate, even in this day and age. Unfortunately, there are still various pros and cons that make the various techniques less desirable. It's just a matter of which less-desirable is most desirable. There are two main techniques that are extolled: Size with pxSize with em Let's review these two approaches before I reveal the magical third.
Sizing with px In the early days of the web, we used pixels to size our text. I, personally, have been of the camp that px-based layouts provide the consistency I prefer and users have enough tools available to adjust their view that accessibility is less of a concern. Sizing with em That whole inability to resize text in IE has been a continuing frustration. The technique modifies the base font-size on the body using a percentage. The problem with em-based font sizing is that the font size compounds. Sizing with rem But what pitiful browser support do we have to worry about? Holmes.css - CSS Markup Detective. What does it do? The holmes.css file will display either an error (red outline), a warning (yellow outline), or a deprecated style (dark grey outline) for flags such as: Missing required attributes on tags, such as name attributes on inputs (lots of these) Potentially improvable markup, such as links with href="#" Deprecated and Non-W3C Elements - see W3C.org's article on obselete tags Non-W3C Attributes - as above, just the most important ones since there are MANY Thanks to Anthony Mann, holmes now displays an informative error message when you hover over the element.