Advertisement

07.07.2008 at 10:53AM PDT, ID: 23544139
[x]
Attachment Details

Cells resize when I add an image

Asked by RedBaronEGTO in Microsoft Development, .Net Editors & IDEs, Visual Studio .NET 2005

Tags: C#, IE, n/a

Hi

I'm having a problem using tables as a layout tool. My plan is to create a Master Page with a header, side bar and footer (fairly standard so far). I use a Template table to create this layout, although creating a similar table manually makes no difference to the outcome. In the side bar I then add another table, with one column and three rows. In the top row I add an Image tag (or the ASP control equivalent, again, it makes no difference). When I populate the image tag with an image, the width of the cell is increased to much wider than the image. For example, say I set the column width to 100px, add an image of 100px (or 250px, makes no difference), the column is now expanded to much wider than the image, say 500px. The image is not wider than it appears and if I try and set the image width to 100%, it just expands it to, say 500px rather than reduce the cell.

This seems such a simple thing and yet I've spent about 7 hours trying to figure this out, changing settings, searching Google etc. I'm familiar with HTML and can confirm there are no extra cells/columns etc, the HTML looks good. This is really sending me crazy.

EDIT: I just tried this again and got the same response. Whenever I add an image to the cell, it expands to xxx pixels wider and sends the neighbouring cell out to the right. Strangely, when I copy and paste the html to Dreamweaver, it formats the page as I would expect. I will try and get a copy of the html and post it here.Start Free Trial
[+][-]07.07.2008 at 10:25PM PDT, ID: 21951118

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Microsoft Development, .Net Editors & IDEs, Visual Studio .NET 2005
Tags: C#, IE, n/a
Sign Up Now!
Solution Provided By: naspinski
Participating Experts: 1
Solution Grade: A
 
 
[+][-]07.08.2008 at 01:54AM PDT, ID: 21952004

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628