background preloader

HTML5 and CSS3

Facebook Twitter

Original Hover Effects with CSS3. The power of CSS3 is enormous and in this tutorial we will see how to exploit it in a very creative way.

Original Hover Effects with CSS3

We are going to create some thumbnail hover effects with CSS3 transitions. On hover over a thumbnail, we will reveal some description of the thumbnail, using a different style in each example. View demo Download source Please note that this will only work properly in modern browsers that support the CSS3 properties in use. The Markup The structure of markup is very simple and intuitive. Inside the view insert an element with the class mask that will be responsible for our effects driven by CSS3 and inside it we will put a title, description and a link to the full image. <div class="view"><img src="image.gif" /><div class="mask"><h2>Title</h2><p>Your Text</p><a href="#" class="info">Read More</a></div></div> Original Hover Effects with CSS3. How To Create Loading Spinners Using CSS3 Animations. Giving feedback to the visitors is a massive part of the user experience, if the user clicks a button they would expect to see something happen.

How To Create Loading Spinners Using CSS3 Animations

An example of this is uploading an image to a website, it may take some time for the server to upload the image, but when the user clicks the upload button they would expect the page to do something. If the page doesn’t give any feedback that the image is currently being uploaded, the visitor could get impatient and either repeatedly click the upload button or navigate away from the page before the upload is complete, for this reason you should always give feedback to your visitors.

CSS3 Family Tree. Fixing 5 common SEO problems with HTML5... today! - distilled. CSS Font and Text Style Wizard. CSS Font and Text Style Wizard Welcome to the CSS Font and Text Style Wizard, brought to you due to the popularity of the HTML and CSS Table Border Style Wizard.

CSS Font and Text Style Wizard

Use this wizard to experiment with font and text styles and generate sample CSS style source code. This wizard uses dynamic HTML to change the style of the table in-situ, without loading another page. It is cross-browser compatible with Firefox, Netscape, Internet Explorer, and other modern browsers. Font and Text Style Notes Font Family For font-family, you can specify an actual font name, like "Courier New" in the custom field.

Units When you use specify lengths in CSS, you should generally use the relative units appropriate to the property. Browser Support This page does not work in Opera 8 or IE5 for the Mac. Vertical Alignment The vertical alignment property is a bit difficult to grasp, and is sometimes classified as a positioning property. Misc More CSS Wizards Recommended Books Dynamic HTML: The Definitive Reference (2nd Edition) HTML5 Snippets. Professional Site Navigation Software.

TOOLS

Stripe Generator - ajax diagonal stripes background designer. An Ultimate HTML5 Cheat Sheet for Web Developers. Create Your Own @font-face Kits. Generate HTML Tables Clean and Fast. Bulletproof @font-face syntax. Let me introduce you to the best way to do your @font-face definitions: This is the Fontspring @font-face syntax.

Bulletproof @font-face syntax

I’ll circle back to why this is the best possible solution but let’s first review the other techniques’ weaknesses. Of course, the problem at the center of this is that IE needs an .eot font, and the other browsers must take a .ttf or .otf. May 12th, 2010. If you’re looking to just put @font-face to use today, just head to FontSquirrel’s generator. Okay, let’s see what we got here… Conditional comments (via) Ugh. Double declarations (via) The problem here is that, as Andrea points out, IE will actually download the .otf file. Because after all, IE doesn’t understand the format hint, right?

GraublauWeb.otf’)%20format(‘opentype Oops, looks like someone forgot a ? Mo’ Bulletproofer (via) Richard Fink proposed this alternate syntax actually as a response to this post, but I’ve included it back here. The local reference Much more concise and clean. Simple Table CSS3. Premium Pixels is an excellent design resource run Orman Clarke.

Simple Table CSS3

He publishes slick photoshop files every few days, including this Simple Table design. For a little challenge I decided to turn his Photoshop file into actual code using CSS3 and a bit of JQuery. You can see a demo here or download the code (feel free to use in your own projects, no attribution necessary). The goal was to have a cross browser compatible version that looked good in Chrome, Firefox, IE8, IE7, and IE6.

Internet Explorer doesn’t support CSS3 rounded corners, gradients, or shadows, but it is still nice and functional. Firefox and Webkit browsers each have their own quirks when implementing CSS3 techniques. How to create slick effects with CSS3 box-shadow. Drop shadows and inner shadows are some of the effects I learned to apply using Photoshop's Blending options.

How to create slick effects with CSS3 box-shadow

But now, since CSS3 "hit the charts", you don't need Adobe's design tool to add a drop shadow or an inner shadow to a box. Nowadays, the cool thing is that you create beautiful CSS3 shadows without actually needing Photoshop anymore. View demo. 50 Useful Tools and Generators for Easy CSS Development. Beautiful UI styling with CSS3 text-shadow, box-shadow, and border-radius. By Henrik Helmers Introduction.

Beautiful UI styling with CSS3 text-shadow, box-shadow, and border-radius