Open Source Resources for Web Application Developers

Shopify - Online Store Builder
Follow Us on Social Sites
Subscribe RSS Subscribe Newsletter Like us on Facebook Follow us on Twitter Follow us on Google+
  • Home
  • News
  • Plugins
  • Design
  • Others
  • Books
  • About
31 Jul

Creating Thumbnails Using the CSS Clip Property

  • Capture, License Free
  • Leave a Comment

One of the least used properties in CSS is the Clip property. Clip is part of the visual effects module of CSS 2.1 and its job is to place a visible window on top of an object that is being clipped.

It is useful for clipping images and creating thumbnails without having to create additional files. Creating Thumbnails Using the CSS Clip Property can be used to create square thumbnails, or to create other varieties of thumbnails without actually duplicating files on the server.

You can also add some drop shadow to the clipped thumbnail by using three wrapper divs with negative offsets of slightly varying background colors to create a shade effect.

css clip

Requirements: -
Demo: http://www.seifi.org/css/creating-thumbnails…
License: License Free

Share
Tweet
Sponsors
subscribe to our newsletter - weekly free resouces for web developers
follow us on social sites - rss, facebook, google+, Twitter
Subscribe RSS Like us on Facebook Follow us on Twitter Follow us on Google+
Related Resources
How to Create a Gallery with Scrollable Thumbnails

How to Create a Gallery with Scrollable Thumbnails

Create Adaptive Thumbnail Pile Effect with jQuery

Create Adaptive Thumbnail Pile Effect with jQuery

Create Beautiful Thumbnail Hover Effect using Mootools

Create Beautiful Thumbnail Hover Effect using Mootools

Stunning Full Page Image Gallery with jQuery

Stunning Full Page Image Gallery with jQuery

Revealing Extra Content & Expanding Fullscreen Overlay

Revealing Extra Content & Expanding Fullscreen Overlay

Custom Javascript Dialog Boxes with 4 Styles

Custom Javascript Dialog Boxes with 4 Styles

Comments
  • http://www.steinhaug.no/ Kim Steinhaug

    While this is a great look into the clip property in CSS2, it is worthless in practical use unless you need px precission on your thumbnails. The markup in the end is rather bloated, and could be solved much easier using the background property and background position.

    There might be a reason why this property is very rarely used, :) Good article though, however very nostalgic!

  • Sherri

    Doesn’t it kind of defeat the purpose of using thumbnails if you are still loading the big image into the page? Thumbnails are meant to be not only smaller in dimension, but smaller in filesize.

  • Pingback: CSSハックマニア その1 | Nutspress

  • Jared Lyvers

    I recently did a write up on this very function. I had so many friends ask how to use it and noticed most people didn’t even know about it. You can check out the full write up at my site: http://lowdownandirty.com/css-clip-function/

  • Pingback: What I’ve been reading this week (July 31/2009) // Roger Stringer

Open Source Resources for You

What we need is a list of the top quality resources, so that we can spend more time on our web development. WebAppers only picks the top quality web development resources for you.

© Copyright 2012 WebAppers | About | Archives | Privacy Policy | Advertise | Contact

Sponsors
Advertise Here
Search
By Keywords
30 Days / All Time
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • Professional Business Cards Made By Designers
  • Best Free Chrome Extensions for Web Developers
  • All of the Best Free WordPress Themes You Need
  • How to Create a Web App Admin User Interface
  • Nice List of Open Source Fish Eye Menu
  • Best Web Admin Templates
  • 25 Useful Blogs for Web Design & Development
  • Simple Javascript Progress Bar with CSS
  • 10 Useful & Quality Design Resources
  • Free Web Application Icons
  • How to Create High-Performance Code
  • Tiny Responsive jQuery Slider without Fancy Effects
  • How to Create Realtime Multi-player Games in HTML5
  • A True Responsive jQuery Lightbox Plugin for Free
  • Create an Amazon-like Navigation Menu with jQuery
  • Super Smooth CSS Transitions for jQuery
  • Pretty Neat jQuery Mobile Theme Based on Flat UI
  • How to Use Web Workers for Image Manipulation
  • How to Make FullScreen Page Transitions with CSS
  • Ghost: A Revolutionary Open Source Blogging Platform
Sponsors
Plugins
  • Advertisement15
  • Calendar47
  • Capture19
  • Charts55
  • Chat22
  • Demo Tour16
  • Gallery121
  • Maps30
  • Menu87
  • Polls9
  • Popup49
  • Tooltips42
  • Upload33
  • Video18
Desgin
  • Brushes11
  • Buttons25
  • Color Schemes25
  • Fonts47
  • Forms112
  • Icons108
  • Patterns24
  • PS Tutorials15
  • Stock Photos21
  • Tables25
Others
  • Announcement103
  • Best Collections6
  • Code55
  • eCommerce24
  • Framework215
  • Hosting13
  • Information240
  • Inspiration32
  • Legal Documents10
  • Reviews8
  • Security13
  • Social28
  • Sound16
  • Stats39
  • Tools293
  • Webmail14
Licesnes
  • BSD License67
  • CC License123
  • GPL License224
  • LGPL License40
  • License Free739
  • MIT License411
Sponsors
Advertise Here
Partners
MaxCDN