Creating Thumbnails Using the CSS Clip Property

Posted 2009年12月4日 by
Tagged As: | Categories: css | No Comments
Creating Thumbnails Using the CSS Clip Property

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. This trick can be used to create square thumbnails, or to create other varieties of thumbnails without actually duplicating files on the server. Here is the rundown.

Clippings are currently only offered in the shape of a rectangle but more shapes might be supported in the future. You can create a rectangle clipping using the rect shape. Using rect requires four coordinates Top, Right, Bottom, Left (TRBL). Let’s take a closer look at how clip calculates the clipping region since it tends to cause some confusion. Keep in mind that the bottom starts from the top, and the right starts from the left.

[Read More…]

精选30个国外优秀的CSS技术和实例

Posted 2009年11月29日 by
Tagged As: | Categories: css | No Comments

《精选15个国外CSS框架》

《目前比较全的CSS重设(reset)方法总结》

《推荐20个让你学习并精通CSS的网站》

《使用CSS完美实现垂直居中的方法》

《整理及优化CSS代码的7个原则》

《10个CSS简写技巧让你永远受用》

1.Hoverbox 图片集

一个纯净的基于CSS的图片集,鼠标悬停缩略图就会显示放大效果。

2.高级CSS菜单

一款很有创意且复杂的CSS导航方案。

3.滑动影集

手风琴效果的影集,悬停便可拉伸图片。

[Read More…]