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. It allows you to mask the content of an element in a rectangle shape. To clip an element: you must specify the position to absolute. Then, specify the top, right, bottom, and left value relative to the element.

Image Clip Example (demo)
The following example shows you how to mask an image using clip property. First, specify the <div> element to position: relative. Next, specify the <img> element to position: absolute and the rect values accordingly.

.clip {
position: relative;
height: 130px;
width: 200px;
border: solid 1px #ccc;
}
.clip img {
position: absolute;
clip: rect(30px 165px 100px 30px);
}
Image Resize and Clip (demo)
In this example, I'm going to show you how to resize and clip images. My original images are in rectangle format. I want to scale it down by 50% to create a thumbnail gallery in a square format. So, I used the width and height property to resize the images and mask them with the clip property. Then, I used the left property to shift the images to the left by 15px.
![]()
.gallery li {
float: left;
margin: 0 10px 0 0;
position: relative;
width: 70px;
height: 70px;
border: solid 1px #000;
}
.gallery img {
width: 100px;
height: 70px;
position: absolute;
clip: rect(0 85px 70px 15px);
left: -15px;
}
2. Min-height (demo)
The min-height property allows you to specify the minimum height of an element. It is useful when you need to balance the layout. I used it on my job board to ensure the content area is alway taller than the sidebar.

.with_minheight {
min-height: 550px;
}
Min-height hack for IE6
Note: min-height is not supported by IE6, but there is a min-height hack.
.with_minheight {
min-height:550px;
height:auto !important;
height:550px;
}
3. White-space (demo)
The white-space property specifies how white-space is handled in an element. For example, specify white-space: nowrap will prevent the text from wrapping to next line.

em {
white-space: nowrap;
}
4. Cursor (demo)
If you change the behavior of a button, you should change its cursor as well. For example, when a button is disabled, the cursor should be changed to default (arrow) to indicate that it is not clickable. So, the cursor property is extremely useful for developing web apps.

.disabled {
cursor: default;
}
.busy {
cursor: wait;
}
.clickable:hover {
cursor: pointer;
}
5. Display inline / block (demo)
In case you didn't know: block elements are rendered on a new line, whereas inline elements are rendered on the same line. <div>, <h1>, and <p> tags are examples of block elements. Examples of inline tags are: <em>, <span>, and <strong>. You can override the display style by specifying display: inline or block.

.block em {
display: block;
}
.inline h4, .inline p {
display: inline;
}
Thanks, so pleased I read this – I can see uses for a few of them.
Thanks, For u knowledge sharing, It will be much useful for the web developer.
goood tips, thanx
Thanks for taking the time to share your knowledge with us. I’m a newbie and didn’t know about these properties. I can already see where I can benefit from a few of them immediately. THANKS!
Great tips. I really didn’t knew most of them :) Thanks!
I can’t believe this post has so many comments. All of these properties I already knew about except for the CSS clip properly. Thanks for going so in depth with each one.
white-space… I completely forget about this! Thx
Great tips for the green and refreshing for the busy…
As some of us have to wear many hats on a job this was a good find
to kick start my brain as an individual many things get buried in the mental Rolodex anyone who knows every property all the time must not do much else but css & html (No offense intended).
So I do find snarky comments a tad “fan-boyish” the “gaw an idiot should know this” types don’t comment with out good reason it makes you look like a “enter foul language”. Sorry for treading Nick.
Thanks.
Whilst I’ve heard of all these properties other than clip I’ve never once come across a guide on how to use them. Thank you Nick, now I properly understand what each of these properties do!
haha, white-space ohh man how did i forget that, great guide, your illustrations always bring a smile, thanks so much
I found the clip to be especially interesting–something I hadn’t really heard of. I think it can be applied very effectivily in interactive slideshow to see more detail.
Thank you for the post–def. Useful.
Hi there, I would love to have a comment box like this, may I know how do i get it? It’s for my blog :)
Great to see a post called 5 simple CSS and useful properties. This is a far cry from Smashing Magazines usual top 50 etc, etc which take a while to read and I doubt if any website designer has the time to read through 50+.
So well done Designer Wall, great and simple tips regarding CSS properties.
Another nice bit sized post, love it.
Thanks, Nick; I didn’t know about the clip property at all, and some of these I wasn’t sure how to properly use them or what their actual purpose even was. I can’t wait until the next time I want to put text next to a heading — I now have the power of inline!
thanks a lot for the clip property. it was in my to-explore list but had forgotten to search it… i don’t think i would’ve found better article elsewhere. keep blogging.. :)
I like the min-height, In fact, I didn’t know you can do this, can you do this to set 100% so you have a faux fake columns effect?
thanks
Another useful post .. :)
Thanks for the min-height hack for IE 6.
enjoy :)
I can’t wait until the next time I want to put text next to a heading — I now have the power of inline!
But clip() values should be separated by commas, not only spaces, right? To validate, I mean.