Results 1 to 3 of 3

Thread: How to re size images to fit in cell for my css?

  1. #1
    Join Date
    Jan 2009
    Posts
    35

    How to re size images to fit in cell for my css?

    Hi,

    I have this problem with my CSS & the images.
    I want to do some redesigning work with my website So I want to know that how can I force my images to automatically re size & fit in the cell of a table?
    The re size need to be in both ways compress & well as stretch.
    Please let me know how to do this?

    Please help me.

  2. #2
    Join Date
    Aug 2008
    Posts
    281

    Re: How to re size images to fit in cell for my css?

    Hi,

    I think you need to go through this document that will guide you about resizing the images so you can put your images in different sized cell of a table with the help of css.
    Always remember for website help First go to W3C
    http://www.w3.org/TR/2002/WD-css3-ba...ckground-size0

    I hope this helps!

  3. #3
    Join Date
    Jan 2009
    Posts
    97

    Re: How to re size images to fit in cell for my css?

    You should change the size of the images so that they fit the table cell size you want.
    If you have 3 cells across the page, they will all be as large as the largest one. If you want them to all be the same size regardless, then put a width and height on the img.
    Code:
    css:
    td { width:xxpx; height:yypx;}
    and / or
    img {width:xxpx; height:yypx;}
    I haven't checked, but max-width:100px and max-height:100px should work, right?

Similar Threads

  1. Applying absolute cell referencing to many cell in Excel
    By Nyota in forum MS Office Support
    Replies: 2
    Last Post: 24-02-2012, 07:23 PM
  2. Replies: 2
    Last Post: 04-01-2012, 06:54 PM
  3. How to download all the images on a page to its actual size
    By Connect_Me in forum Technology & Internet
    Replies: 3
    Last Post: 12-05-2009, 02:16 PM
  4. Auto-populate a MS Word table cell with text from a diff cell?
    By dreamrthts in forum Windows Software
    Replies: 5
    Last Post: 23-03-2009, 10:39 PM
  5. Replies: 3
    Last Post: 18-04-2007, 04:26 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,270,244.99191 seconds with 17 queries