background preloader

Slick login form with HTML5 & CSS3

Slick login form with HTML5 & CSS3
We already know that CSS3 has the ability to create a lot of new possibilities to design and implement better web forms. Also, HTML5 has its important role when it comes about creating more usable forms, without actually needing any Javascript code. Knowing that, check out the below preview to see the login form we're going to create in this article: View demo Markup <form id="login"><h1>Log In</h1><fieldset id="inputs"><input id="username" type="text" placeholder="Username" autofocus required><input id="password" type="password" placeholder="Password" required></fieldset><fieldset id="actions"><input type="submit" id="submit" value="Log in"><a href="">Forgot your password? The HTML5 stuff New HTML5 attributes descriptions, according to latest specifications: The CSS For this article, I will not paste the whole lines here. Paper stack effect Box-shadow will help us creating this nice effect by defining multiple shadows that actually overlap. Stitch effect Subtle gradient lines The final result

Conditional CSS I got some great comments on my post about conditionally loading content. Just to recap, I was looking for a way of detecting from JavaScript whether media queries have been executed in CSS without duplicating my breakpoints. That bit is important: I’m not looking for MatchMedia, which involves making media queries in JavaScript. Instead I’m looking for some otherwise-useless CSS property that I can use to pass information to JavaScript. Tantek initially suggested using good ol’ voice-family, which he has used for hacks in the past. Then Tantek suggested that, whatever property I end up using, I could apply it to an element that’s never rendered: meta or perhaps head. A number of people suggested using font-family, citing Foresight.js as prior art. Then I can read that in JavaScript: window.getComputedStyle(document.head,null).getPropertyValue('font-family') It works! I guess I could just wait a little while for Opera to copy whatever Webkit browsers do. Back to the drawing board. Nice!

All Standards and Drafts Css tips and tricks - Red Team Design Animated Content Tabs with CSS3 About us You think water moves fast? You should see ice. It moves like it has a mind. How we work Like you, I used to think the world was this great place where everybody lived by the same standards I did, then some kid with a nail showed me I was living in his world, a world where chaos rules not order, a world where righteousness is not rewarded. Services Do you see any Teletubbies in here? Excellence Portfolio The path of the righteous man is beset on all sides by the iniquities of the selfish and the tyranny of evil men. Examples Now that we know who you are, I know who I am. Contact You see? Get in touch Well, the way they make shows is, they make one show. | Collecting all the cheat sheets InMotion Hosting - HTML5 Cheat Sheet Hosting Comparisons Embed it! <img src=" width="800" height="1487" border="0" alt="Where Does Your Website Live?" /><div>InMotion Hosting - <a href=" of Web Hosting Plans</a></div> SEO Audit Checklist <img src=" width="1000" height="1900" border="0" alt="20-Minutes or Less SEO Audit Checklist" /><div>InMotion Hosting - A Los Angeles <a href=" Hosting</a> Company</div> HTML5 Cheat Sheet - Tags HTML5 Cheat Sheet - Event Handler Attributes HTML5 Cheat Sheet - Browser Support

The Definitive Guide to CSS Animations and Transitions The animation and transition tags are summary properties, composed of all the various options you can apply to an animation or transition. They are largely to do with the movement of objects or setting a transition phase to make things appear to be more smooth. Across the internet a wide variety of examples have been composed showing the capabilities that CSS3 and these properties bring to the table. The Difference The main difference between an animation and a transition is a transition can only change from one element to another on hover or when an element becomes active, i.e. through a pseudo class. These features are rather popular, and as such the major browsers have all incorporated experimental support. Multiple animations are separated by commas. Each option above can be set individually which is quite useful, but this is only useful once you set keyframes. The CSS you put in the 0% bracket will happen immediately as soon as the animation is initiated. • animation-name

10 CSS Rules Every Web Designer Should Know Through experience as web designers we memorise all kinds of code syntax, hacks and snippets. With CSS in particular there is a number of rules and declarations that can really help transform your website designs and open up new possibilities when compared to older techniques. This post rounds up 10 declarations and tips that every web designer should have available in their CSS arsenal. @media screen and (max-width: 960px) { } The @media rule not only allows you to specify styling for your web page when printed. These days media queries are more associated with the creation of responsive or adaptive website designs. A cool and extremely useful CSS3 property that has now gained thorough browser support is background-size. One CSS3 property that has really helped transform the web over recent years is @font-face. The clever margin: 0 auto; declaration is one of the first snippets you learn when getting to grips with CSS.

HTML5 Reset :: A simple set of templates for any project CSS3 Patterns Gallery Browser support The patterns themselves should work on Firefox 3.6+, Chrome, Safari 5.1, Opera 11.10+ and IE10+. However, implementation limitations might cause some of them to not be displayed correctly even on those browsers (for example at the time of writing, Gecko is quite buggy with radial gradients). Also, this gallery won’t work in Firefox 3.6 and IE10, even though they support gradients, due to a JavaScript limitation. Submission guidelines If you have a new pattern to submit, please send a pull request. Does it present a new technique?