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;
}
I must admit I never used the css clip property.
Like several others I hadn’t really come across the clip property … thanks for that.
Just a thought … might be good to run down exact browser support for properties such as the clip, so that the visitor doesn’t have to track it down themselves … a ‘nice to have’ ….
I find the clip property very useful, but its poor support in IE6 make it another candy feature we cant apply in order to keep our sites accesible to -still- many- users. If you want more info about this lack of support, here is an interesting post http://www.velocityreviews.com/forums/t156626-ie6-standards-mode-and-css-clip.html
“Clip” was new to me also.
i am found here what the meaning all about form that script….ihihihihihi….usefull
I too was clueless about clip. I also keep forgetting about the white-space one. Must use that in future. Thanks, this was actually useful :)
I have never used clip propierty
Thanks for the info on CLIP – like almost everyone else here, I didn’t even know it existed! Extremely useful!
I’ve never come across these CSS properties but they look like they would be useful for me and I will have to try them on my new websites. Thanks for sharing this.
Thanks for the IE6 Min-height hack! Wish I knew that sooner!
Thanks for this, I’m excited to go play with whitespace. I had never heard or it before.
With all the talk lately about CSS3, it’s refreshing to see someone exploring the depths of the CSS2 standard we’re using now. This post reminds me of “HTML Mastery” – it’s information that a lot of designers will “know” in the back of their head somewhere, but you’ve brought it out into the light to tell people “these properties exist for a reason.” Thanks for the info!
I had no clue about CSS Clip. I think I will definitely be using that in the near future. Thanks
Whitespace is a nifty trick to have. I can’t say how many times I’ve had edits to a page that involve forced line breaks because the content flows into email or web page templates differently, depending on how the font size is rendered in different programs.
I wasn’t familiar with CSS Clip either. I’ve been testing it and it’s cool.
Thanks for the tip Nick ;D
just bookmarked into delicious…never know about the clip method….thanks folks!
Great and useful article! I’ll send it to my friend developer
Quite interesting and simple CSS properties and quite well explained too.
Thanks a ton.
Thank you for some useul tips, especially clip
Clip property is really helpful for me, will use it in future work.
Thanks alot!!!