c# - Image work fine I Chrome but not IE -


i have 2 images beside each other on page right side. works in chrome , shows correct in internet edge pictures huge. have missed?

the code following:

text = "<div><center><table style=\"width:100%;\">" +         "<tbody><tr>" +         "<td align=\"left\">" +         "<a href=\"http://www." + test + "/m.aspx\"><center><img style=\"display: block; height: auto;max-width: 95%;margin: 0 auto;\" src=\"/images/" + entrym.image + "\"></center></a>" +         "</td>" +         "<td align=\"right\">" +         "<a href=\"http://www." + test + "/test/" + entryr.url + "\" target=\"_blank\"><center><img style=\"display: block; height: auto;max-width: 95%;margin: 0 auto;\" src=\"/images/" +  entryr.image + "\"></center></a>" +         "</td> " +         "</tr>" +         "<tr>" +         "<td style=\"text-align:center;\">test</td>" +         "<td style=\"text-align:center;\">test</td>" +         "</tr>" +         "</tbody></table>" +         "<table style=\"width:100%; margin-bottom: 30px;\">" +         "<tbody><tr>" +         "<td style=\"text-align:center;\">" +         "<a href=\"http://www." + test + "/m.aspx\"><u>test</u></a>" +         "</td>" +         "</tr>" +         "</tbody></table>" +         "</center></div>"; 

try adding width: 50% both images

<img style=\"display: block; height: auto; width: 50%; max-width: 95%;margin: 0 auto;\" src=\"/images/" + entrym.image + "\"> 

Comments

Popular posts from this blog

python - Operations inside variables -

Generic Map Parameter java -

arrays - What causes a java.lang.ArrayIndexOutOfBoundsException and how do I prevent it? -