Solved

why does my website look different on different browsers

Posted on 2016-11-13
18
52 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:rkckjk
  • 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:rkckjk
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
Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
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:rkckjk
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:rkckjk
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:rkckjk
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:rkckjk
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:rkckjk
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:rkckjk
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:rkckjk
ID: 41885924
Thanks
0

Featured Post

Active Directory Webinar

We all know we need to protect and secure our privileges, but where to start? Join Experts Exchange and ManageEngine on Tuesday, April 11, 2017 10:00 AM PDT to learn how to track and secure privileged users in Active Directory.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Asp in script 6 39
CSS SASS 4 35
Alert after MVC form submitted 1 22
IF statment In Powershell 12 17
Use these top 10 tips to master the art of email signature design. Create an email signature design that will easily wow recipients, promote your brand and highlight your professionalism.
Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

828 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