Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 85
  • Last Modified:

why does my website look different on different browsers

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
Richard Kreidl
Asked:
Richard Kreidl
  • 10
  • 8
1 Solution
 
nathanielIT ConsultantCommented:
for tables with no data, try including &nbsp;  for example,  <td>&nbsp;</td>
0
 
Richard KreidlSoftware DeveloperAuthor Commented:
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
 
nathanielIT ConsultantCommented:
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
Get 10% Off Your First Squarespace Website

Ready to showcase your work, publish content or promote your business online? With Squarespace’s award-winning templates and 24/7 customer service, getting started is simple. Head to Squarespace.com and use offer code ‘EXPERTS’ to get 10% off your first purchase.

 
nathanielIT ConsultantCommented:
I mean if you have an empty cell. Because other browsers may display the table incorrectly.
0
 
Richard KreidlSoftware DeveloperAuthor Commented:
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
 
nathanielIT ConsultantCommented:
try inserting in one of your script:

<DIV align="center"><xsl:apply-templates select="MF38035A"/>&nbsp;</DIV>
0
 
nathanielIT ConsultantCommented:
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
 
Richard KreidlSoftware DeveloperAuthor Commented:
I get an error message stating: error on line 119 at column 74: Entity 'nbsp' not defined
0
 
Richard KreidlSoftware DeveloperAuthor Commented:
I get an error message stating: error on line 119 at column 74: Entity 'nbsp' not defined
0
 
nathanielIT ConsultantCommented:
did you copy the codes I posted here? If you copied, what editing tool are you using?

make sure it's &nbsp;
0
 
Richard KreidlSoftware DeveloperAuthor Commented:
Notepad++

Yes I did.
0
 
nathanielIT ConsultantCommented:
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
 
Richard KreidlSoftware DeveloperAuthor Commented:
It's saved as .xsl file because it's a CSS style sheet.
0
 
nathanielIT ConsultantCommented:
Save it as HTML. I see your code is not meant for XML/XSL or CSS.
0
 
Richard KreidlSoftware DeveloperAuthor Commented:
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
 
nathanielIT ConsultantCommented:
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
 
nathanielIT ConsultantCommented:
0
 
Richard KreidlSoftware DeveloperAuthor Commented:
Thanks
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

  • 10
  • 8
Tackle projects and never again get stuck behind a technical roadblock.
Join Now