How do I resize an original image in an HTML table? -


I have created a table with 4 rows and 16 columns in HTML and I put one image in one cell and the other Until then I did not have all my rows and columns, see my code below. My problem is with the image: The size of the image is very large. I do not know how it should go about the thumbnail size. Apart from this, the image is not even sitting next to the image Note: The image is on the left and the text is on the right side of the image. Any help would be greatly appreciated.

  & lt; Html & gt; & Lt; Top & gt; & Lt; Title & gt; Cameron Cookies & lt; / Title & gt; & Lt; / Head & gt; & Lt; Body & gt; & Lt; Table cells = "0" cell padding = "0" & ​​gt; & Lt; TR & gt; & Lt; Td> & Lt; Img src = "j0175514.jpg" alt = "chocolate cookies" & gt; & Lt; / Img & gt; & Lt; / Td> & Lt; TD & gt; Chocolate & lt; / TD & gt; & Lt; Td> & Lt; Img src = "j0408843.jpg" alt = "chocolate nut cookies" & gt; & Lt; / Img & gt; & Lt; / Td> & Lt; Td> Chocolate nuts & lt; / Td> & Lt; / TR & gt; & Lt; TR & gt; & Lt; Td> & Lt; Img src = "j0428480.jpg" alt = "macadamia nut cookies" & gt; & Lt; / Img & gt; & Lt; / Td> & Lt; Td> Macadia walnuts & lt; / Td> & Lt; Td> & Lt; Img src = "j0182695.jpg" alt = "oatmeal richen cookies" & lt; / Img & gt; & Lt; / Td> & Lt; Td> Oatmeal Racine & lt; / Td> & Lt; / TR & gt; & Lt; TR & gt; & Lt; Td> & Lt; Img src = "j0428480.jpg" alt = "M & M cookies" & lt; / Img & gt; & Lt; / Td> & Lt; Td> M & amp; amp; MK & lt; / TD & gt; & Lt; Td> & Lt; Img src = "j0440992.jpg" alt = "white chocolate cookies" & lt; / Td> & Lt; Td> White chocolate & lt; / Td> & Lt; / TR & gt; & Lt; TR & gt; & Lt; Td> & Lt; Img src = "j0387871.jpg" alt = "chocolate pecan cookies" & lt; / Img & gt; & Lt; / Td> & Lt; Td> Chocolate Pecan & lt; / Td> & Lt; Td> & Lt; Img src = "j0425515.jpg" alt = "chocolate hazelnut cookies" & lt; / Img & gt; & Lt; / Td> & Lt; Td> Chocolate Hazelnut & lt; / Td> & Lt; / TR & gt; & Lt; / Table & gt; & Lt; / Br & gt; Cookies are a great gift idea that everyone loves, just call us or send us an e-mail 24 hours in advance and we will prepare a basket full of a lovely gift bag or a collection of fresh, homemade cookies. Thanks for visiting our website and make sure to visit us here in Portland, Maine. To order, click here. & Lt; / P & gt; & Lt; / Body & gt; & Lt; / Html & gt;  

Most browsers automatically convert an image to the size of the dimensions specified in the width When specifying and height properties:

, width and height attributes allow user agents to override natural image or object size in their favor. Is the value

When the object is an image, then it is scaled. To match the width and height specified by the author, the user agent should do his best to scale the object or the image.

However, the correct way to do this is to convert the original pictures into the desired dimensions.

Therefore, if you have a 160 x 120 image and you have a 1600 x 1200 image, go ahead and create a resized image and Refer to the source.

By doing so, the page load will be faster because the image file will now be less too than the original one.


Comments

Popular posts from this blog

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

Debug on symbian -