Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ============================
- ======== CSS - CLIP v.1 - POSTé
- ============================
- ============================
- =========== CLIP - rect (top, right, bottom, left)
- image:clip:rect(0px,60px,200px,0px);
- ==http://forum.alsacreations.com/topic-4-22305-1-Resolu-Crop-image-CSS.html
- Note NEED:
- - ABSOLUTE
- - Does not work if "overflow:visible".
- - VISIBLE
- shape Clips an element. The only valid value is: Play it »
- auto No clipping will be applied. This is default Play it »
- inherit Specifies that the value of the clip property should be inherited from the parent element
- img
- {
- position:absolute;
- clip:rect(0px,60px,200px,0px);
- }
- What happens if an image is larger than its containing element? -
- The clip property lets you specify the dimensions of an absolutely positioned element
- that should be visible, and the element is clipped into this shape, and displayed.
- object.style.clip="rect(0px,50px,50px,0px)"
- ============================
- =========== YAHOO MAIL - NBR MAILS IN CUSTOM FOLDER
- /* CUSTOM FOLDERS - NBR MAILS IN EACH - HOVER/CLIP -
- CLIP:
- rect (top, right, bottom, left)
- image:clip:rect(0px,60px,200px,0px);
- === */
- #custom-folders li.folder:hover a:after {
- clip:rect(0px,350px,9px,155px) !important;
- position: absolute !important;
- width: 200px !important;
- height: 10px !important;
- line-height: 3px !important;
- right: 2px !important;
- bottom: -2px !important;
- content:attr(title) !important;
- font-size: 5px !important;
- color: black !important;
- background: gold !important;
- padding: 0 2px !important;
- text-align: right !important;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement