background preloader

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. CSS Clip 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.

50+ Fresh CSS Techniques, Tutorials and Resources - Noupe Dec 02 2009 By Paul Andrew Learning CSS and how to use it effectively can be a reasonably easy thing to do for a beginning web developer. In the hands of a seasoned professional, CSS can be stretched and pushed it to its limits where it can seem complicated and yet perfect at the same time. Being able to adapt to new ideas and different techniques, as well as seeking new solutions to old problems is part and parcel of being a web designer. In this article, we’ll bring you up to date with the latest in CSS development through a collection of fresh CSS tutorials, techniques, and resources. Menus, Buttons and Forms Create a Button with Hover and Active States using CSS SpritesSome designers neglect the click state (active: property in CSS) in web design, either because they’re unaware of it, underestimate the importance of it, or are just lazy. CSS Absolute Positioning: Create A Fancy Link BlockAbsolute positioning is a well-known CSS technique supported by all web browsers.

11 Classic CSS Techniques Made Simple with CSS3 We've all had to achieve some effect that required an extra handful of divs or PNGs. We shouldn't be limited to these old techniques when there's a new age coming. This new age includes the use of CSS3. I'm sure you've heard of CSS in general. Here's what the official (or at least, what I consider official) website of CSS3, css3.info, has to say about CSS3: CSS3 is the new kid in the stylesheet family. Here are the 11 techniques that I'll be showing you how to recreate with CSS3. Probably my favorite on of this list, rounded corners provide a developer with so many options. You can simulate rounded corners by using four extra divs or by using JavaScript. The classical method uses jQuery along with a JavaScript plugin called Corners. As you can see, all that you need to do is specify three CSS3 properties. View the demo. Box shadows provide you with a very powerful tool. 99% of the time when I'm desigining, I find myself using drop shadows for something. I'm using the dropShadow plugin.

50+ Useful CSS Tools And Generators for Developers Jul 11 2011 CSS tools are essential for web developers because they act like a sort of magic lamp that can simplify the job at hand. Most development tools are time savers that are there to help developers create stylish, functional and optimized websites with a few shortcuts. CSS tools and generators are available in such large numbers that a developer can choose from a range of them to make their projects go smoother. CSS Colors Tools Color Scheme DesignerThis tool provides colors in the form of a color wheel that offers mono, complement, traid, tetrad, analogic and accented analogic color variations in the percentage ratio; and it also highlights the same with the suitable scheme chosen. Ultimate CSS Gradient GeneratorIt is a CSS gradient editor and generator that lets you create CSS gradients having cross-browser support. CSS Color CodesThis tool offers two options for furnishing the hexadecimal and RGB color codes. CSS Layouts Tools CSS Grids Tools CSS Menus and Buttons CSS Sprite Tools

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. Effects Aren’t Just For Photoshop & Images Anymore 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. 3. 4. 5. With CSS3 we’ll now be able to use images for borders! 6. 7. 8. 9.

CSS Grid Positioning Module Level 3 Conformance requirements are expressed with a combination of descriptive assertions and RFC 2119 terminology. The key words “MUST”, “MUST NOT”, “REQUIRED”, “SHALL”, “SHALL NOT”, “SHOULD”, “SHOULD NOT”, “RECOMMENDED”, “MAY”, and “OPTIONAL” in the normative parts of this document are to be interpreted as described in RFC 2119. However, for readability, these words do not appear in all uppercase letters in this specification. All of the text of this specification is normative except sections explicitly marked as non-normative, examples, and notes. Examples in this specification are introduced with the words “for example” or are set apart from the normative text with class="example", like this: Informative notes begin with the word “Note” and are set apart from the normative text with class="note", like this: Note, this is an informative note. The specification will remain Candidate Recommendation for at least six months.

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

fantasai 54: Evolution of CSS Layout: 1990s to the Future Earlier this year, I was asked to speak at the Emerging Technologies for the Enterprise conference in Philadelphia. I didn't think I'd have anything useful to say at such a conference, not being a practicing web developer, but they scoped out a presentation that seemed like a really interesting idea that I knew I could execute really well. So I agreed to give the talk. Some topics (like How to File a Good Bug Report) I can throw together a few slides and just wing it. After the conference, PhillyETE posted a screencast of the presentation, so anyone can watch it online. But if watching videos is not your thing, I've posted my notes below. Altogether it was a fun challenge, and I think what came out was worth creating. Hi! This is my first time giving a presentation at a conference like this. How many people here work with CSS? So my day job is working on the CSS specifications. The Dark Ages First, to understand CSS layout and the mess it is today, we're going to go back in time... Robust

Amazing CSS3 techniques you should know Color animate any shape with CSS3 and a PNG Let’s start this compilation with an interesting effect created using only CSS3: A png image with a changing background. The background is using CSS3 transitions. Not the kind of effect you’ll put on your website, but definitely an interesting demo of what CSS3 can do.View source: Create adaptable layout using CSS3 media queries CSS3 media queries allow you to adapt a web layout to the browser width. Dim entire page when certain link is rolled over, css way Very cool for web apps: Once a particular link is rolled over, the rest of the page is dimmed. Clipping text with CSS3 text-overflow text-overflow is a new CSS3 property which allows you to define how to handle a text which is bigger than its container. Full Browser Width Bars Another goldie from Chris Coyier: In this tutorial, he’ll teach you how to create full browser width bars easily.View source:

Related: