
5 CSS3 Design Enhancements That You Can Use Today Cascading Style Sheets (CSS) is the language of Web design, and the next generation of CSS design properties are just chomping at the bit to be released. Are you eager to start using them, but don’t know where to start? Although many of the new properties are not yet “official”, some browsers have already implemented many of the features of the coming CSS Level 3 specifications. The problem is that many browsers—most notably Internet Explorer—have not. The trick to using these new CSS3 features is to treat them as design enhancements. A design enhancement (which I discuss in my new book Speaking In Styles: The Fundamentals of CSS for Web Designers) is any flourish you add to your site designs that increases its visual appeal without diminishing its usability if the style is not rendered. This can be a tricky call, with there being a fine line between enhancement and not diminishing usability: This is the original design, before applying any CSS3 design enhancements 1. 2. border-radius: r; 3.
5 Simple, But Useful CSS Properties This post is about 5 useful CSS properties that you should be very familiar with, but will most likely rarely use. I'm not talking about the new fancy CSS3 properties. I'm referring to the old CSS2 properties such as: clip, min-height, white-space, cursor, and display that are widely supported by all browsers. So, don't miss this post because you might be surprised how useful they are. 1. The clip property is like a mask. Image Clip Example (demo) The following example shows you how to mask an image using clip property. Image Resize and Clip (demo) In this example, I'm going to show you how to resize and clip images. 2. The min-height property allows you to specify the minimum height of an element. Min-height hack for IE6 Note: min-height is not supported by IE6, but there is a min-height hack. 3. The white-space property specifies how white-space is handled in an element. 4. If you change the behavior of a button, you should change its cursor as well. 5.
5 Extremely Useful But Rarely-Used CSS3 Properties - DesignFestival Diligent designers stay up to date with the latest in web design and development. Staying on the cutting edge of the web can give you an advantage in your web design business and can even make your design work substantially easier and better. Most web designers know and use CSS to create beautiful websites that are browser-friendly and consistent across all platforms. Having said that, there are some CSS3 properties that aren’t used as often as you would expect. Despite their rarity, they are extremely useful. Multiple Backgrounds Many designers don’t realize that you can implement multiple backgrounds into your website designs. To implement multiple backgrounds, you need to define them in the body tag and separate them with commas. The result is that the two images (the life preserver and the anchor) are placed in the top-right and the top-left of the browser. Transitions One of the biggest outcries with the decline of Flash is the lack of animation or transitional properties in CSS.
10 Things CSS3 & HTML5 Will Teach Us While we are all squirming in our seats waiting for the official release and support of HTML5 and CSS3, I’d thought I’d share with you some interesting things about both. We can all look at a boring list of the features of both, but they don’t really tell us how front end development is going to change. Although I’m super excited about how much easier it’s going to make my coding, I’m also somewhat nervous as there’s going to be a HUGE learning curve (especially for CSS3), even if it’s just to our coding habits. Here are 10 great things that both CSS3 and HTML5 are going to teach us very soon. 1. As it is now, every time we want to do some cool effect, what do we have to do? Opacity – we can now control the opacity of an color (or an image without making it a PNG)Drop Shadow – with the box-shadow style we can now add fancy drop shadows to our divs and text! 2. CSS3 also brings many improvements to text and will probably change the way we use fonts. 3. 4. 5. 6. 7. Now becomes: 8. 9. 10.
50 Awesome CSS3 Animations CSS3 has brought some amazing new features. And the most fun is playing with the CSS animation. Here is a compilation of 50 CSS3 animation that allows you to perform many motion-based functions normally Delegated to JavaScript. 1. Use the basic features of the CSS3 Transform: rotate. 2. Analogue clock created using webkit transition and transform CSS. 3. 3D Cube That Rotates Using Arrow Keys You can Use up, down, left and right keys to navigate the 3D cube. 3D cube built using -webkit-perspective, -webkit-transform and -webkit-transition. 4. Multiple 3D Cubes using CSS3 and proprietary ‘transform’ and ‘transition’ properties. 5. An accordion effect using only CSS. 6. Auto-Scrolling Paralax is an animated parallax effect using WebKit’s CSS transition property,Auto-Scrolling Paralax no need JavaScript 7. Isocube is like 3DCube but have litle different. 8. 9. The Matrix is one of the best sci-fi films of all time. 10. 7 Javascript-effect Alternatives Using CSS3 11. 12. 13. 3D Meninas 14. 15.
The Basics of CSS3 Last week I posted a CSS3 dropdown menu and someone complained that I didn't explain the CSS code in detail. Well, here is a post on the basics of the new properties: text-shadow, box-shadow, and border-radius. These CSS3 properties are commonly used to enhance layout and good to know. The first three values are RGB color values and the last value is the level of the transparency (0 = transparent and 1 = opaque). RBGA can be applied to any properties associated with color such as font color, border color, background color, shadow color, etc. Text Shadow Text shadow is structured in the following order: x-offset, y-offset, blur, and color; Set a negative value for x-offset to shift the shadow to the left. You can also specify a list of text-shadow (separated by a comma). text-shadow: 0 1px 0 #fff, 0 -1px 0 #000; Border Radius The shorthand for border radius is similar to the padding and margin property (eg. border-radius: 20px). You can specify each corner with a different value. Box Shadow
CSS3 Cookbook: 7 Super Easy CSS Recipes to Copy and Paste CSS3 Cookbook: 7 Super Easy CSS Recipes to Copy and Paste By now you’ve probably seen enough lengthy CSS3 tutorials to last a lifetime. You’re probably starting to become familiar with what CSS3 has to offer and are ready to move past basic theory and see some practical design examples that you can copy and paste right into your code without without wading through tons of commentary. Well you’re in luck because that’s exactly what we have for you today! Letterpress Insetting text is fairly simple in CSS. To start off, fill your text with the darker shade of your background color. The HTML <body><div id="container"><p>pressed</p></div></body> The CSS Small Caps The small caps effect is when all of the letters in a headline are capital, but the initial letters in each word are larger than the rest. One easy way to do this is simply to insert “small” tags into your HTML and then to style those tags with a slightly smaller font size than the rest of the headline. CSS Coupon Stitched Gloss Conclusion
CSS3 pronti per l'uso | Articoli Css | Css.HTML.it I CSS3 rappresentano il complemento ideale per formattare una struttura di contenuti realizzata con il nuovo linguaggio di marcatura di HTML5, e in questo articolo allestiremo graficamente il template per un blog realizzato per la guida HTML5, utilizzando quelle proprietà CSS3 che sono state implementate nei browser più moderni. Gli esempi presentati (prima e seconda demo) costituiscono un ottimo banco di prova per testare la compatibilità delle varie tecniche: nello specifico, i browser meglio supportati sono Internet Explorer 9, Firefox 4, Safari 5, Chrome 9 e Opera 11. Una delle novità più importanti dei CSS3 è che non sono più inglobati in una unica specifica monolitica in cui spingere tutti gli aggiornamenti del team di sviluppo del W3C; al contrario, essi consistono in una serie di moduli progettati per essere implementati separatamente e indipendentemente gli uni dagli altri. Figura 1 – Browser vendor prefixes
Gradienti CSS3 Una breve introduzione all’uso dei gradienti con CSS3 I gradienti CSS3 sono sicuramente una delle rivoluzioni più interessanti dei nuovi fogli stile. Ci permettono infatti con delle righe brevi di codice, di creare l’effetto di immagini sfumate (linearmente o radialmente) con indubbi vantaggi rispetto ai vecchi metodi. Perchè usare i gradienti CSS3 al posto delle immagini? I vantaggi sono sostanzialmente 3: Maggior flessibilità – Una modifica al css richiede minor tempo che la modifica di un’immagineMeno richieste http al server e quindi minor tempo di caricamento del sitoRidimensionamento – Il cambiamento delle dimensioni del contenitore permette il ridimensionamento automatico del gradiente Andiamo allora a vedere nel concreto la sintassi per utilizzare i gradient css3: Esempio di gradiente lineare: La prima linea indica il colore predominante di background, utile anche per i browser obsoleti. background-image: linear-gradient(top, #b032cb, #440951); Esempio di gradiente radiale:
The Definitive Guide to CSS Transitions - DesignFestival Back in the golden days of the web, we had a little thing called Flash to help us make the web a dynamic, fun, interactive place. But, Flash is being used less and less. Of course, in certain environments it can still be put to amazing use, but in today’s web environment you need CSS to get the job done. One of the easiest ways to give your site a near-instant facelift is to bring CSS3 transitions to the table (pun intended). Drop this into an HTML document and check it out: Yeah, I know gray boxes aren’t all that exciting, but the point is that the transitions on the box to the right are more interesting and give the design a more polished feel. Pseudo-Classes for CSS Transitions The key to making CSS transitions work is through the use of pseudo-classes. Here we have the CSS element for a link and the pseudo-class “hover” for when the mouse is over the link. Some other important pseudo-classes you need to know for CSS transitions include: Introducing CSS Transitions Beyond :hover and Links
Understanding The Basics Of CSS3 Cascading Style Sheets, commonly known as CSS, has been around for sometime now allowing us to create much more powerful and flexible websites than in the past. Now that CSS has evolved a bit and the acceptance of CSS3 is making its way to our favorite browsers, we can begin to play around with some of the newer features available. In this article I will focus on some of the more popular features of CSS3, many of which are beginning to make their appearance on several of the websites that I frequently visit. While most of these are only visible in some of the more modern web browsers (Mozilla, Chrome, Safari) it’s important to go ahead and get a grasp of exactly how they work. Border Radius Creating rounded corners in web design wasn’t always the easiest of things to accomplish. Equal Corners Keep all of those corners symmetrical with just a few short keystrokes. The Code: -webkit-border-radius: 10px; -moz-border-radius: 10px; border-radius: 10px; Unequal Corners Box Shadow Text Shadow Gradients