Solved

why does my website look different on different browsers

Posted on 2016-11-13
18
27 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
 
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
What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

 
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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

So you have coded your own WordPress plugin and now you want to allow users to upload images to a folder in the plugin folder rather than the default media location? Follow along and this article will show you how to do just that!
SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
In this tutorial viewers will learn how to style a decorative dropcap for the first letter in a paragraph using CSS. In CSS, create a new paragraph class by typing "p.fancy": Then, to style only the first letter of the first sentence, include the ps…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

762 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now