Solved

Page with Image

Posted on 2004-03-27
1
162 Views
Last Modified: 2010-04-09
I have a page which is a table 100%

Top row is 2 cells one 20% the other 80%

how do I make an image fit when resizing of the page is done?
0
Comment
Question by:pinkstonm
1 Comment
 
LVL 6

Accepted Solution

by:
Reapz earned 50 total points
ID: 10696832
Place the image inside the cell you want and then set the width and height of the image to 100%. The width of the image will then be adjusted to fit the cell and the height will be adjusted accordingly. As you resize your browser window the size of the image will be adjusted too.

However, the quality of the image after resizing will be low so you might not be happy with the results. Also remember that even if the display size of the image is half of what the actual dimension are the user still has to wait the same amount of time for it to load and you still use the same amount of bandwidth.
0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
In this tutorial viewers will learn how to position overlapping items using z-index in CSS. They will also learn the restrictions on the z-index property.  Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Red.…
In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question