Thread: Trim a Image

    #1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2003
    Posts
    77
    Rep Power
    12

    Trim a Image


    Hello

    I think a simple question.

    I got for example image sized 100 x 100px
    I want to show a part of the Image in a div. 60 x 80 without that the image get cropped or scaled. Just a part of the image.
    How do I do this with CSS/ For now it scales and I dont want that.

    Thanks
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2003
    Posts
    77
    Rep Power
    12

    Trim a image - use 'overflow:hidden;'


    I dont know why, but I am sleeping.

    I had to use
    Code:
    overflow:hidden;
  4. #3
  5. |<.+#f@#+.&.|
    Devshed Loyal (3000 - 3499 posts)

    Join Date
    Mar 2002
    Location
    norway
    Posts
    3,009
    Rep Power
    1224
    another option is to use the clip property,
    more flexible than the overflow
    http://www.w3.org/TR/CSS21/visufx.html#propdef-clip
  6. #4
  7. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2003
    Posts
    77
    Rep Power
    12

    Your post give me a new idea about...


    Hi

    Thank you for your reply.

    Originally Posted by Akh
    another option is to use the clip property,
    more flexible than the overflow
    http://www.w3.org/TR/CSS21/visufx.html#propdef-clip
    I will look into this if what I have now doesn't work well.

    Any way you give me a pointer to something that I want to do next. I post a new topic and hope you will look into this. Maybe you can help me again. ;-)

    René

IMN logo majestic logo threadwatch logo seochat tools logo