/    Sign up×
Community /Pin to ProfileBookmark

Different appearance between localhost and remote (shared host) server

Someone asked me to update an ancient shared host website made with Dreamweaver. This is static HTML that has not changed in years. My goal is to migrate it to a content management system but in the meantime I’m seeing something that confuses me.

If I scp -r the entire contents of the remote DOCUMENT_ROOT into localhost on my desktop Mint Linux (Cinnamon) distribution the appearance of the site changes.

I hesitate to say this is a path issue because all *.css files seem to be used and recognized on localhost. For instance if I change the styles.css found in the DOCUMENT_ROOT on localhost the appearance changes. But when styles.css is identical on both localhost and the remote server the relative size of both images and DIV elements are not the same–when I mouse click back and forth between two tabs that contain identical codes, one tab localhost and one tab a remote shared host. I must be missing something.

I’m not using “sites-available” on localhost. I could. Right now I have all of the remote site copied into /var/www/html which is the default DOCUMENT_ROOT on localhost. The appearances should be the same but they are not.

What am I missing? Besides a clue? Thank you for any help.

to post a comment
Full-stack Developer

4 Comments(s)

Copy linkTweet thisAlerts:
@pittendrighauthorFeb 02.2017 — OK the plot thickens. I mentioned the appearance of two identical HTML/css code sets being different in two side by side tabs, on the same browser, where one code set was on localhost and the other a remote shared host. This was using an updated Chrome on Mint Linux, even after clearing cache a half a dozen times.

On Firefox the same two tabs (one localhost one remote shared server) are the same.
Copy linkTweet thisAlerts:
@Douglas_WilliamFeb 02.2017 — I've learned to despise this term;
[CENTER]WYSIWYG

Program/Application Codification(s)[/CENTER]


Just go through the motions and clean it up [consciously right] and then meet with the owner and show-n-tell-n-develop to please.

... I don't envy this for you, pittendrigh.
Copy linkTweet thisAlerts:
@pittendrighauthorFeb 02.2017 — I've learned to despise this term;
[CENTER]WYSIWYG

Program/Application Codification(s)[/CENTER]


Just go through the motions and clean it up [consciously right] and then meet with the owner and show-n-tell-n-develop to please.

... I don't envy this for you, pittendrigh.[/QUOTE]


RE> "just clean it up"

Perhaps I will ignore the inexplicable visual differences between two identical code sets. I appears the same on Firefox but no on Chrome. I have yet to test with my Mac laptop or my Windows box. I couldn't get past the inexplicable visual differences with Chrome on Linux (but not Firefox).

======

One interesting note. I'm sure Dreamweaver can be used well, if you know what you are doing. But it is prone to errors. The previous developer who was more a graphics artist and less of a programmer, used Dreamweaver to make this site. Somehow he got DOCTYPES miss-matched with code style, which created a firestorm of validation errors. Somehow none of thousands of images had any "alt" attributes and all links were images, so there was scant SEO information anywhere in the codes.

So "makes it easy even for beginners" is a weave of dreams, rather than reality.
Copy linkTweet thisAlerts:
@pittendrighauthorFeb 02.2017 — End of thread? I would delete my last entry but I don't seem to have delete privileges. Which is fine. Thank you.

Final RE> Two tabs with identical codes. Localhost and remote. Two different appearances. But I had Chrome on 125% zoom factor. For some not yet explained reason Chrome zoomed localhost but not the remote codes. Cache was cleared. I even tried (temporarily) moving /home/myusername/.config to /tmp ....... but still different Chrome behavior for local and remote.

Linux Firefox showed the same codes the same way, as did Safari on Mac. My Windows isn't plugged in right now.

Why Chrome would act that way is a mystery. But at least I know what is going on now. I'll now charge ahead and stop worrying about it.
×

Success!

Help @pittendrigh spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.5,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...