Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 20-06-2009
Member
 
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.
Reply With Quote
  #2  
Old 20-06-2009
Member
 
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!
Reply With Quote
  #3  
Old 20-06-2009
Member
 
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?
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "How to re size images to fit in cell for my css?"
Thread Thread Starter Forum Replies Last Post
Applying absolute cell referencing to many cell in Excel Nyota MS Office Support 2 24-02-2012 07:23 PM
How to restore cell gridlines lost after coloring the cell in Excel? Chitti's Windows Software 2 04-01-2012 06:54 PM
How to download all the images on a page to its actual size Connect_Me Technology & Internet 3 12-05-2009 02:16 PM
Auto-populate a MS Word table cell with text from a diff cell? dreamrthts Windows Software 5 23-03-2009 10:39 PM
The logical size of this database is 16 GB. This database size is approaching the size limit of 18 GB HandelMan Small Business Server 3 18-04-2007 04:26 PM


All times are GMT +5.5. The time now is 06:07 AM.