Last post Sep 19, 2012 07:40 AM by blechle
Sep 19, 2012 04:52 AM|blechle|LINK
When i start the site in Debug mode (Win7 PC) the image on the page shows correctly streched inside the table cell.
When I deploy the site and host it on another Win7 PC the image also shows correct
But when I host the site on the Windows Server 2008 R2 the image shows only a quater of the size.
I'm using asp.net with c# as CodeBehind language
I have created a Tablerow with 4 cells where the last contains the image. The code for that image is as follows:
TableCell cell1 = new TableCell();
cell1.Width = Unit.Pixel(160);
cell1.Font.Bold = false;
cell1.Style.Add("background-size", "100% 100%");
cell1.BorderColor = Color.FromArgb(227, 227, 227);
cell1.ForeColor = Color.Black;
I don't know much about the IIS settings. I just create a new site and follow the instructions so I asume they are identical.
The 1st cell has a letter in the center, the 2nd is empty and the third has a 2 lined text and the image in the 4th cell on win7 is streched proportionally over the whole hight while on Server2008r2 is only proportionally streched to 1 line (or half the
Can anyone help?
Sep 19, 2012 04:55 AM|interwanderer1|LINK
That would mean that the html that is being rendered is different...
Please make a comparison of both... and look at the difference.
Sep 19, 2012 06:31 AM|blechle|LINK
I tried to compare the Html code that is returned with a comparer but it is identical on the part that is related to that picture.
Sep 19, 2012 07:30 AM|interwanderer1|LINK
That's all that what a web app does, it returns html...
Unless you are using a different browser(platform?) with a different resolution there should not be a difference.
Sep 19, 2012 07:40 AM|blechle|LINK
Why is it then that it displays it different when its the same code in the same browser?
This is the part of the code it returns:
<th align="center" valign="middle" colspan="1" style="color:Black;background-color:#E3E3E3;border-color:Gray;border-width:0px;font-size:28pt;width:80px;font-family:Calibri;">Z</th>
<th align="left" colspan="1" style="color:Black;background-color:White;border-color:Gray;border-width:0px;width:20px;"></th>
<th align="left" valign="top" colspan="1" style="color:Black;background-color:#E3E3E3;border-color:#E3E3E3;border-width:0px;width:620px;">
<p align='center' style='margin-top:20px;font-size:20px;font-family:Calibri '>QUARTIERVERRECHNUNG</p>
<p align='center' style='font-size:16px;font-weight:lighter;font-family:Calibri'>August  2012</p></th>
<td style="color:Black;border-color:#E3E3E3;font-weight:normal;width:160px;background-image:url('../img/Headerwastian.jpg');background-repeat:no-repeat;background-size:100% 100%;visibility:visible;">