Solved

why does my website look different on different browsers

Posted on 2016-11-13
18
61 Views
Last Modified: 2016-11-13
I have a URL that looks different in IE versus Chrome.

I use CSS style sheets in the HTML.

It seems some of the tables are not completed shown when the site is viewed.

I'm attaching both screen prints of the IE version display and Chrome one also.

Thanks
Chrome-screen-print.PNG
IE-screen-print.PNG
0
Comment
Question by:Richard Kreidl
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 10
  • 8
18 Comments
 
LVL 6

Expert Comment

by:nathaniel
ID: 41885838
for tables with no data, try including &nbsp;  for example,  <td>&nbsp;</td>
0
 
LVL 2

Author Comment

by:Richard Kreidl
ID: 41885844
Not sure what you mean by "&no data"
 Here's a snippet of the beginning of the CSS:
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">

<xsl:include href="footer.xsl"/>

<xsl:output method="html" indent="yes" />
<xsl:param name="digits">0123456789</xsl:param>

<xsl:template match="/">

<HTML>
<HEAD>
<style type="text/css">
.tg  {border-collapse:collapse;border-spacing:0;}
.tg td{font-family:Calibri;font-size:20px;overflow:hidden;word-break:normal;}
.tg th{font-family:Calibri;font-size:20px;font-weight:bold;overflow:hidden;word-break:normal;}
.tg .tg-winx{font-family:Calibri;font-size:20px;font-weight:bold;background-color:#9ea2a2;color:##000000}
.tg .tg-zdv3{font-family:Calibri;font-weight:bold;background-color:#002b49;color:#ffb81c}
.tg .tg-hxz6{font-family:Calibri;background-color:#002b49;color:#ffb81c}
.div {font-family:Calibri}
 </style>

<style type="text/css">
  BODY {
    font-family: Calibri;
	}
</style>


</HEAD>
<BODY>

  <xsl:apply-templates select="MSR/Info"/>
  <xsl:call-template name="foot" />
  
  

</BODY>
</HTML>

</xsl:template>

<xsl:template match="Info">


<table class="tg" width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <th class="tg-zdv3">NORTHWESTERN MUTUAL - ETCC</th>
  </tr>
  <tr>
  <th class="tg-zdv3"><xsl:apply-templates select="TODAY"/></th>
  </tr>
  <tr>
    <td class="tg-hxz6"><center>DAILY BATCH REPORT</center></td>
  </tr>
  <tr>
    <td class="tg-winx"><u>BATCH CYCLE DELAYS:</u><font color="#000000"><xsl:apply-templates select="Comment"/></font></td>
  </tr>
</table>



<TABLE width="100%" border="1" valign="TOP">
               <TR bgColor="#9ea2a2">
                    <TH width="33%">
                         <font color="black" size="4">
                              <u><DIV align="left">Overnight Batch Processing</DIV></u>
                         </font>
                    </TH>
                   <TH width="7%">
                         <font color="black" size="4">
                              <u>SLA/OLA</u>
                         </font>
                    </TH>
                    <TH width="7%">
                         <font color="black" size="4">
                              <u>END TIME</u>
                         </font>
                    </TH>
					<TH>
                         <font color="black" size="4">
                              <u>BUSINESS IMPACT</u>
                         </font>
                    </TH>
					<TH width="7%">
                         <font color="black" size="4">
                              <u>IM</u>
                         </font>
                    </TH>
					<TH>
                         <font color="black" size="4">
                              <u>REASON</u>
                         </font>
                    </TH>
					</TR>
					<TR bgColor="#cce6ff" border="0">
                        <td colspan="6">					    
						<font color="#3336ff">
						      <u><DIV align="left"><p style="font-size:20px">Mutual Funds</p></DIV></u>
					     </font>
					    </td>
					</TR>
				    <TR border="1">
					   <TD>
					   <font color="black">
					           <DIV align="left">Mutual Funds EOD Release</DIV>
					    </font>
						</TD>
					   <TD>
					 <font color="black">
					      <DIV align="center">6:50pm</DIV>
					 </font>
					</TD>
					 <TD>
					 <DIV align="center"><xsl:apply-templates select="MF38035A"/></DIV>
					</TD>
					<TD>
					 <DIV align="left"><xsl:apply-templates select="MF38035A_BI"/></DIV>
					</TD>
					<TD>
					 <DIV align="center"><xsl:apply-templates select="MF38035A_IM"/></DIV>
					</TD>
					<TD>
					 <DIV align="left"><xsl:apply-templates select="MF38035A_RS"/></DIV>
					</TD>
					</TR>
					<TR bgColor="#cce6ff" border="0">
                        <td colspan="6">					    
						<font color="3336ff">
						      <u><DIV align="left"><p style="font-size:20px">Annuities</p></DIV></u>
					     </font>
					    </td>
					</TR>
					<TR border="1">
					   <TD>
					   <font color="black">
					           <DIV align="left">Annuity Insurance Feed</DIV>
					    </font>
						</TD>
					   <TD>
					 <font color="black">
					      <DIV align="center">N/A</DIV>
					 </font>
					</TD>
					<TD>
					 <DIV align="center"><xsl:apply-templates select="AN30057"/></DIV>
					</TD>
					<TD>
					 <DIV align="left"><xsl:apply-templates select="AN30057_BI"/></DIV>
					</TD>
					<TD>
					 <DIV align="center"><xsl:apply-templates select="AN30057_IM"/></DIV>
					</TD>
					<TD>
					 <DIV align="left"><xsl:apply-templates select="AN30057_RS"/></DIV>
					</TD>
					</TR>
					<TR bgColor="#cce6ff" border="0">
                        <td colspan="6">					    
						<font color="3336ff">
						      <u><DIV align="left"><p style="font-size:20px">Insurance/ISA</p></DIV></u>
					     </font>
					    </td>
					</TR>
					 <TR border="1">
					   <TD>
					   <font color="black">
					           <DIV align="left">Insurance Database</DIV>
					    </font>
						</TD>
					   <TD>
					 <font color="black">
					      <DIV align="center">10:30pm</DIV>
					 </font>
					</TD>
					<TD>
					 <DIV align="center"><xsl:apply-templates select="BT30004"/></DIV>
					</TD>
					<TD>
					 <DIV align="left"><xsl:apply-templates select="BT30004_BI"/></DIV>
					</TD>
					<TD>
					 <DIV align="center"><xsl:apply-templates select="BT30004_IM"/></DIV>
					</TD>
					<TD>
					 <DIV align="left"><xsl:apply-templates select="BT30004_RS"/></DIV>
					</TD>
					</TR>
					<TR border="1">
					   <TD>
					   <font color="black">
					           <DIV align="left">ISA Database</DIV>
					    </font>
						</TD>
					   <TD>
					 <font color="black">
					      <DIV align="center">12:00am</DIV>
					 </font>
					</TD>
					<TD>
					 <DIV align="center"><xsl:apply-templates select="LASTISA"/></DIV>
					</TD>
					<TD>
					 <DIV align="left"><xsl:apply-templates select="LASTISA_BI"/></DIV>
					</TD>
					<TD>
					 <DIV align="center"><xsl:apply-templates select="LASTISA_IM"/></DIV>
					</TD>
					<TD>
					 <DIV align="left"><xsl:apply-templates select="LASTISA_RS"/></DIV>
					</TD>
					</TR>
					<TR bgColor="#cce6ff" border="0">
                        <td colspan="6">					    
						<font color="3336ff">
						      <u><DIV align="left"><p style="font-size:20px">Sales Reporting</p></DIV></u>
					     </font>
					    </td>
					</TR>
					<TR border="1">
					   <TD>
					   <font color="black">
					           <DIV align="left">Sales Bulletins</DIV>
					    </font>
						</TD>
					   <TD>
					 <font color="black">
					      <DIV align="center">6:00am</DIV>
					 </font>
					</TD>
					<TD>
					 <DIV align="center"><xsl:apply-templates select="SALES"/></DIV>
					</TD>
					<TD>
					 <DIV align="left"><xsl:apply-templates select="SALES_BI"/></DIV>
					</TD>
					<TD>
					 <DIV align="center"><xsl:apply-templates select="SALES_IM"/></DIV>
					</TD>
					<TD>
					 <DIV align="left"><xsl:apply-templates select="SALES_RS"/></DIV>
					</TD>
					</TR>

Open in new window

0
 
LVL 6

Expert Comment

by:nathaniel
ID: 41885846
each browser has a unique way of interpreting HTML codes, so it is important that you stick to HTML standards and test your work to all type of popular browsers.

For HTML standards, you may want to visit this site http://www.w3schools.com/ (If you have not yet visited this)

You may also want to visit this site for testing your work: http://browsercompatible.com/
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 6

Expert Comment

by:nathaniel
ID: 41885848
I mean if you have an empty cell. Because other browsers may display the table incorrectly.
0
 
LVL 2

Author Comment

by:Richard Kreidl
ID: 41885851
THe cell could be empty or have data within it. When it has data in it the table displays correctly.

Look at the screen print I attached. Some of the table cells are empty in both Chrome and IE.

But in IE the table borders are invisible, but in CHrome you can see them.
0
 
LVL 6

Expert Comment

by:nathaniel
ID: 41885861
try inserting in one of your script:

<DIV align="center"><xsl:apply-templates select="MF38035A"/>&nbsp;</DIV>
0
 
LVL 6

Expert Comment

by:nathaniel
ID: 41885864
or try these codes.. see where I inserted the &nbsp;


<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">

<xsl:include href="footer.xsl"/>

<xsl:output method="html" indent="yes" />
<xsl:param name="digits">0123456789</xsl:param>

<xsl:template match="/">

<HTML>
<HEAD>
<style type="text/css">
.tg  {border-collapse:collapse;border-spacing:0;}
.tg td{font-family:Calibri;font-size:20px;overflow:hidden;word-break:normal;}
.tg th{font-family:Calibri;font-size:20px;font-weight:bold;overflow:hidden;word-break:normal;}
.tg .tg-winx{font-family:Calibri;font-size:20px;font-weight:bold;background-color:#9ea2a2;color:##000000}
.tg .tg-zdv3{font-family:Calibri;font-weight:bold;background-color:#002b49;color:#ffb81c}
.tg .tg-hxz6{font-family:Calibri;background-color:#002b49;color:#ffb81c}
.div {font-family:Calibri}
 </style>

<style type="text/css">
  BODY {
    font-family: Calibri;
	}
</style>


</HEAD>
<BODY>

  <xsl:apply-templates select="MSR/Info"/>
  <xsl:call-template name="foot" />
  
  

</BODY>
</HTML>

</xsl:template>

<xsl:template match="Info">


<table class="tg" width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <th class="tg-zdv3">NORTHWESTERN MUTUAL - ETCC</th>
  </tr>
  <tr>
  <th class="tg-zdv3">&nbsp;<xsl:apply-templates select="TODAY"/></th>
  </tr>
  <tr>
    <td class="tg-hxz6"><center>DAILY BATCH REPORT</center></td>
  </tr>
  <tr>
    <td class="tg-winx"><u>BATCH CYCLE DELAYS:</u><font color="#000000">&nbsp;<xsl:apply-templates select="Comment"/></font></td>
  </tr>
</table>



<TABLE width="100%" border="1" valign="TOP">
               <TR bgColor="#9ea2a2">
                    <TH width="33%">
                         <font color="black" size="4">
                              <u><DIV align="left">Overnight Batch Processing</DIV></u>
                         </font>
                    </TH>
                   <TH width="7%">
                         <font color="black" size="4">
                              <u>SLA/OLA</u>
                         </font>
                    </TH>
                    <TH width="7%">
                         <font color="black" size="4">
                              <u>END TIME</u>
                         </font>
                    </TH>
					<TH>
                         <font color="black" size="4">
                              <u>BUSINESS IMPACT</u>
                         </font>
                    </TH>
					<TH width="7%">
                         <font color="black" size="4">
                              <u>IM</u>
                         </font>
                    </TH>
					<TH>
                         <font color="black" size="4">
                              <u>REASON</u>
                         </font>
                    </TH>
					</TR>
					<TR bgColor="#cce6ff" border="0">
                        <td colspan="6">					    
						<font color="#3336ff">
						      <u><DIV align="left"><p style="font-size:20px">Mutual Funds</p></DIV></u>
					     </font>
					    </td>
					</TR>
				    <TR border="1">
					   <TD>
					   <font color="black">
					           <DIV align="left">Mutual Funds EOD Release</DIV>
					    </font>
						</TD>
					   <TD>
					 <font color="black">
					      <DIV align="center">6:50pm</DIV>
					 </font>
					</TD>
					 <TD>
					 <DIV align="center">&nbsp;<xsl:apply-templates select="MF38035A"/></DIV>
					</TD>
					<TD>
					 <DIV align="left">&nbsp;<xsl:apply-templates select="MF38035A_BI"/></DIV>
					</TD>
					<TD>
					 <DIV align="center">&nbsp;<xsl:apply-templates select="MF38035A_IM"/></DIV>
					</TD>
					<TD>
					 <DIV align="left">&nbsp;<xsl:apply-templates select="MF38035A_RS"/></DIV>
					</TD>
					</TR>
					<TR bgColor="#cce6ff" border="0">
                        <td colspan="6">					    
						<font color="3336ff">
						      <u><DIV align="left"><p style="font-size:20px">Annuities</p></DIV></u>
					     </font>
					    </td>
					</TR>
					<TR border="1">
					   <TD>
					   <font color="black">
					           <DIV align="left">Annuity Insurance Feed</DIV>
					    </font>
						</TD>
					   <TD>
					 <font color="black">
					      <DIV align="center">N/A</DIV>
					 </font>
					</TD>
					<TD>
					 <DIV align="center">&nbsp;<xsl:apply-templates select="AN30057"/></DIV>
					</TD>
					<TD>
					 <DIV align="left">&nbsp;<xsl:apply-templates select="AN30057_BI"/></DIV>
					</TD>
					<TD>
					 <DIV align="center">&nbsp;<xsl:apply-templates select="AN30057_IM"/></DIV>
					</TD>
					<TD>
					 <DIV align="left">&nbsp;<xsl:apply-templates select="AN30057_RS"/></DIV>
					</TD>
					</TR>
					<TR bgColor="#cce6ff" border="0">
                        <td colspan="6">					    
						<font color="3336ff">
						      <u><DIV align="left"><p style="font-size:20px">Insurance/ISA</p></DIV></u>
					     </font>
					    </td>
					</TR>
					 <TR border="1">
					   <TD>
					   <font color="black">
					           <DIV align="left">Insurance Database</DIV>
					    </font>
						</TD>
					   <TD>
					 <font color="black">
					      <DIV align="center">10:30pm</DIV>
					 </font>
					</TD>
					<TD>
					 <DIV align="center">&nbsp;<xsl:apply-templates select="BT30004"/></DIV>
					</TD>
					<TD>
					 <DIV align="left">&nbsp;<xsl:apply-templates select="BT30004_BI"/></DIV>
					</TD>
					<TD>
					 <DIV align="center">&nbsp;<xsl:apply-templates select="BT30004_IM"/></DIV>
					</TD>
					<TD>
					 <DIV align="left">&nbsp;<xsl:apply-templates select="BT30004_RS"/></DIV>
					</TD>
					</TR>
					<TR border="1">
					   <TD>
					   <font color="black">
					           <DIV align="left">ISA Database</DIV>
					    </font>
						</TD>
					   <TD>
					 <font color="black">
					      <DIV align="center">12:00am</DIV>
					 </font>
					</TD>
					<TD>
					 <DIV align="center">&nbsp;<xsl:apply-templates select="LASTISA"/></DIV>
					</TD>
					<TD>
					 <DIV align="left">&nbsp;<xsl:apply-templates select="LASTISA_BI"/></DIV>
					</TD>
					<TD>
					 <DIV align="center">&nbsp;<xsl:apply-templates select="LASTISA_IM"/></DIV>
					</TD>
					<TD>
					 <DIV align="left">&nbsp;<xsl:apply-templates select="LASTISA_RS"/></DIV>
					</TD>
					</TR>
					<TR bgColor="#cce6ff" border="0">
                        <td colspan="6">					    
						<font color="3336ff">
						      <u><DIV align="left"><p style="font-size:20px">Sales Reporting</p></DIV></u>
					     </font>
					    </td>
					</TR>
					<TR border="1">
					   <TD>
					   <font color="black">
					           <DIV align="left">Sales Bulletins</DIV>
					    </font>
						</TD>
					   <TD>
					 <font color="black">
					      <DIV align="center">6:00am</DIV>
					 </font>
					</TD>
					<TD>
					 <DIV align="center">&nbsp;<xsl:apply-templates select="SALES"/></DIV>
					</TD>
					<TD>
					 <DIV align="left">&nbsp;<xsl:apply-templates select="SALES_BI"/></DIV>
					</TD>
					<TD>
					 <DIV align="center">&nbsp;<xsl:apply-templates select="SALES_IM"/></DIV>
					</TD>
					<TD>
					 <DIV align="left">&nbsp;<xsl:apply-templates select="SALES_RS"/></DIV>
					</TD>
					</TR>

Open in new window



hope this helps
0
 
LVL 2

Author Comment

by:Richard Kreidl
ID: 41885865
I get an error message stating: error on line 119 at column 74: Entity 'nbsp' not defined
0
 
LVL 2

Author Comment

by:Richard Kreidl
ID: 41885866
I get an error message stating: error on line 119 at column 74: Entity 'nbsp' not defined
0
 
LVL 6

Expert Comment

by:nathaniel
ID: 41885868
did you copy the codes I posted here? If you copied, what editing tool are you using?

make sure it's &nbsp;
0
 
LVL 2

Author Comment

by:Richard Kreidl
ID: 41885874
Notepad++

Yes I did.
0
 
LVL 6

Expert Comment

by:nathaniel
ID: 41885881
ok im using notepad++ too. I copied and pasted the codes I posted to double check and got no error. Did you save it as Hyper Text Markup Language? This should work fine.
0
 
LVL 2

Author Comment

by:Richard Kreidl
ID: 41885882
It's saved as .xsl file because it's a CSS style sheet.
0
 
LVL 6

Expert Comment

by:nathaniel
ID: 41885894
Save it as HTML. I see your code is not meant for XML/XSL or CSS.
0
 
LVL 2

Author Comment

by:Richard Kreidl
ID: 41885900
If I save it as a HTML file my VB .Net application won't be able to transform my .XML file using  a .XSL file in to a HTML file.

HTML files generally start with:
<!DOCTYPE HTML>
<html>

  XML files start with:
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
0
 
LVL 6

Expert Comment

by:nathaniel
ID: 41885911
I see.. try replacing it with a dot  (.)
The problem might be on the way the browsers are interpreting white-space (or space) in an empty cell/s within a table.

Anyway, this site might give you a better idea about white space for XMLs: https://www.tutorialspoint.com/xml/xml_white_spaces.htm
0
 
LVL 6

Accepted Solution

by:
nathaniel earned 500 total points
ID: 41885913
0
 
LVL 2

Author Closing Comment

by:Richard Kreidl
ID: 41885924
Thanks
0

Featured Post

Why Off-Site Backups Are The Only Way To Go

You are probably backing up your data—but how and where? Ransomware is on the rise and there are variants that specifically target backups. Read on to discover why off-site is the way to go.

Question has a verified solution.

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

The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
Originally, this post was published on Monitis Blog, you can check it here . Websites are getting bigger and more complicated by the day. Video, images and custom fonts are all great for showcasing your product or service. But the price to pay in…
In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …
In this tutorial viewers will learn how to embed Flash content in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <object> tag to embed Flash content.: To specify that the object is Flash content, d…

624 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