Solved

Page displays differently within same browser!

Posted on 2016-08-08
12
46 Views
Last Modified: 2016-08-21
Hi,

I have a simple .NET web application.

My issue is around the styling.

It displays differently when I run it locally to when i run it on my server.   I have no idea why as the browser I am viewing it is the same!

Local View:
This is what it looks like when run locally.. (which is the correct way)
This is what it looks like when run locally.. (which is the correct way)

Server View - Missing the links at the very top and also pushes the logo and logged in to the very edges which I do not want!..

Server View - Missing the links at the very top and also pushes the logo and logged in to the very edges which I do not want!
0
Comment
Question by:SmashAndGrab
[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
  • 7
  • 3
  • 2
12 Comments
 
LVL 43

Expert Comment

by:zephyr_hex (Megan)
ID: 41747407
Inspect the CSS of the changed elements and verify it's the same.  If it's not, then make sure you copied over your CSS to the server.

If the CSS is the same, please post the relevant CSS for one of the elements, so we have an example to work with.
0
 
LVL 29

Expert Comment

by:chilternPC
ID: 41748065
if you have missing links maybe the links are relative and only work on your local machine
and when on the server they break (because the browser can't find the links on its system)  and so do not display and the display all shuffles about.
0
 

Author Comment

by:SmashAndGrab
ID: 41748367
thanks.

 I did think that it might be that the links were relative but it appears they are ok.

css viewmain.css
0
PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

 
LVL 43

Expert Comment

by:zephyr_hex (Megan)
ID: 41748910
Can you show us a comparison of the CSS for one for the missing elements?  Show us the CSS when it's working, and the CSS when it's not working.

This is what I mean:
image
0
 

Author Comment

by:SmashAndGrab
ID: 41748962
ok.. heres the working version (local)...

working version looks ok

And here is the non working version..

non
0
 

Author Comment

by:SmashAndGrab
ID: 41748968
just double checked the bootstap.css files are they are indenticle.
0
 
LVL 29

Expert Comment

by:chilternPC
ID: 41749034
I didn't mean the links to the CSS, if they were wrong it would be COMPLETELY different
I mean the hyperlinks to other pages or items such as  "Enter data " and "drag Data"
0
 
LVL 43

Expert Comment

by:zephyr_hex (Megan)
ID: 41749239
Well, it's obviously a CSS problem.  I'd recommend you copy your web page file from the working server to the non-working server, for starters.  I know you said they're the same, but I noticed a few minor differences, so I know they are not identical:

Working:
working
Non-Working:
non-working.png
I'd also recommend that you look at the Network tab in your browser dev tool to verify all of the resources are loading.
0
 

Author Comment

by:SmashAndGrab
ID: 41756166
Sorry for delay.

I will copy the files now and report back.
0
 

Author Comment

by:SmashAndGrab
ID: 41756247
Hi,

I've just deleted everything on the server.  Then re-copied everything from my local machine to the server again.

I get the same issue again. :(

local
server
I really have no idea why is it doing this..  its so strange.
0
 

Accepted Solution

by:
SmashAndGrab earned 0 total points
ID: 41756622
ok.  Here's what fixed it...

<meta http-equiv="X-UA-Compatible" content="IE=edge" />
0
 

Author Closing Comment

by:SmashAndGrab
ID: 41764173
This was the fix for issue I was having.
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
In this tutorial viewers will learn how to style different bullet points for unordered lists in CSS. Begin with a normal unordered list; the default bullet point is a solid circle: In the CSS, create a defined class of unordered list by typing "ul.S…
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…

635 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