html - Stretch image to fit in td -


I want to spread an image in my TD cell. How to do it It has a tab image which looks like this. ________ |. I need to keep this image in the first TD cell in which the text 'aaa' will come in the center of this image.

You can not stretch the background image without using CSS3

< Strong> CSS3 contains the background-size property for which you take a 100% image of 100% container but for CSS3 is not supported in all browsers.

You can use an image tag and you can give width and height 100% to achieve it.


Comments

Popular posts from this blog

c# - ListView onScroll event -

PHP - get image from byte array -

Linux Terminal Problem with Non-Canonical Terminal I/O app -