Uploaded site different from local site

This is a discussion on "Uploaded site different from local site" within the Web Page Design section. This forum, and the thread "Uploaded site different from local site are both part of the Design Your Website category.


 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices




Reply
 
LinkBack Thread Tools
  #1  
Old Mar 27th, 2008, 01:44
Junior Member
Join Date: Mar 2008
Location: Edinburgh
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Question Uploaded site different from local site

Spent a few days creating a website. Needed to upload it today to add a functioning search facility. After uploading, most of the font types, hover behaviour, background colour, font sizes and spacing were completely messed up. I am using HTML and 99% CSS for formatting. All editing done through notepad.

Is there a way I can design a website to behave and look as it does on my local computer?

I am using IE7. Peculiar thing is if I reload the same page, some of the formatting gets fixed, but still most of it is still wrong.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

  #2  
Old Mar 27th, 2008, 01:51
CloudedVision's Avatar
Moderator
Join Date: Feb 2008
Location: In My Own Little World
Age: 14
Posts: 1,255
Blog Entries: 9
Thanks: 2
Thanked 40 Times in 40 Posts
Re: Uploaded site different from local site

most likely the link to your stylesheet got messed up. double check it.
__________________
Web Design And Development: Other Road Design | Problems with IE6?: KApp | My Blog: Only Nerds Allowed | Learning PHP? Lessons
Last Blog Entry: Hilarious Rapper (Jul 29th, 2008)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old Mar 27th, 2008, 01:51
frinkky's Avatar
Super Moderator
Join Date: Oct 2006
Location: Southampton
Age: 30
Posts: 351
Blog Entries: 2
Thanks: 2
Thanked 6 Times in 6 Posts
Re: Uploaded site different from local site

You mention fonts. Which fonts did you specify in your style sheet? but thats a minor issue, can you post a link and a screenshot of your local view to compare.
Last Blog Entry: Fobriwap! (Mar 10th, 2008)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old Mar 27th, 2008, 02:48
Junior Member
Join Date: Mar 2008
Location: Edinburgh
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Uploaded site different from local site

Quote:
Originally Posted by CloudedVision View Post
most likely the link to your stylesheet got messed up. double check it.
the stylesheet is in the same directory as the index file and is just referred to by it's filename with no path.

besides, the html code uploaded is no different from that on the local computer. if a path or filename was incorrect, it wouldn't work locally either.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5  
Old Mar 27th, 2008, 02:58
CloudedVision's Avatar
Moderator
Join Date: Feb 2008
Location: In My Own Little World
Age: 14
Posts: 1,255
Blog Entries: 9
Thanks: 2
Thanked 40 Times in 40 Posts
Re: Uploaded site different from local site

well, it sounds like your missing the stylesheet, i can't really think of another cause. sure its uploaded?
__________________
Web Design And Development: Other Road Design | Problems with IE6?: KApp | My Blog: Only Nerds Allowed | Learning PHP? Lessons
Last Blog Entry: Hilarious Rapper (Jul 29th, 2008)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6  
Old Mar 27th, 2008, 03:00
Junior Member
Join Date: Mar 2008
Location: Edinburgh
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Uploaded site different from local site

Quote:
Originally Posted by frinkky View Post
You mention fonts. Which fonts did you specify in your style sheet? but thats a minor issue, can you post a link and a screenshot of your local view to compare.
fonts specified are:
Verdana,Tahoma,Arial,sans-serif;

font actually shown is, times new roman (or whatever ie7's default is).

the link to the online html is: http://aaronmicalowe.10gbfreehost.com/

interesting thing is, when i load the local version into ie7's cache, then go to the online version (which is identical in every way), the online version now looks exactly as it should (except that it isn't centred on the page).

pictures of what it should like attached.
Attached Images
File Type: png index_top.png (232.5 KB, 5 views)
File Type: png index_bottom.png (170.7 KB, 3 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #7  
Old Mar 27th, 2008, 03:13
frinkky's Avatar
Super Moderator
Join Date: Oct 2006
Location: Southampton
Age: 30
Posts: 351
Blog Entries: 2
Thanks: 2
Thanked 6 Times in 6 Posts
Re: Uploaded site different from local site

Tahoma as I recall is not part of the generic web font list. These are the standard font families:

font-family:Arial, Helvetica, sans-serif;
font-family:"Times New Roman", Times, serif;
font-family:"Courier New", Courier, monospace;
font-family:Georgia, "Times New Roman", Times, serif;
font-family:Verdana, Arial, Helvetica, sans-serif;
font-family:Geneva, Arial, Helvetica, sans-serif;

It would default to Times if it can't find tahoma.

Try that first then lets see where we are.
Last Blog Entry: Fobriwap! (Mar 10th, 2008)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #8  
Old Mar 27th, 2008, 03:14
Junior Member
Join Date: Mar 2008
Location: Edinburgh
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Uploaded site different from local site

and here is what the online version of the contacts page looks like:

the background colour is white not black
the logo url at the top is the wrong font
the top menu bar font is too large causing it to overlap
the side menu bar and rest of content fonts are wrong too
the whole page should also be centred

i can see how this could all be caused by the css not loading - what i don't see is why, how i can test this, and how i can fix it
Attached Images
File Type: png online.png (210.0 KB, 2 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #9  
Old Mar 27th, 2008, 03:18
Junior Member
Join Date: Mar 2008
Location: Edinburgh
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Uploaded site different from local site

Quote:
Originally Posted by frinkky View Post
Tahoma as I recall is not part of the generic web font list. These are the standard font families:
if ie7 can find Tahoma to display the html locally, why can't it use the same font to display the identical page online?

also, i based the webpage on a generic template from a well known site (top google link). i'd be surprised if they used fonts that don't work on ie7.

a similar problem happened recently when i direct linked to an image for ebay. the link only worked while the image was in cache. once the cache was cleared the link failed. i ended up using photo bucket to solve this problem, but it seems ie7 can interpret pages differently depending on what is in the cache that matches the items being loaded.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #10  
Old Mar 27th, 2008, 03:26
Junior Member
Join Date: Mar 2008
Location: Edinburgh
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Uploaded site different from local site

Quote:
Originally Posted by frinkky View Post
It would default to Times if it can't find tahoma.

Try that first then lets see where we are.
ok, i replaced Tahoma with Arial cause they're not much different.
cleared the cache.
when loading the page for the first time it's still messed up, but after reloading it's fixed (except still not centred on the page). this happens whether i use Tahoma or not
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #11  
Old Mar 27th, 2008, 03:37
frinkky's Avatar
Super Moderator
Join Date: Oct 2006
Location: Southampton
Age: 30
Posts: 351
Blog Entries: 2
Thanks: 2
Thanked 6 Times in 6 Posts
Re: Uploaded site different from local site

One step at a time

I've attached what I see in ie7. No issue with fonts and no issue with white background, just the centering.

It could be a local cache issue. Anyway, try changing

margin: 0 auto;

to

margin: 0 auto 0 auto;

on #wrap

But what you should do before anything else is fix your markup errors: validation

Well, a couple things to try.
Attached Images
File Type: jpg savemeadowbank.jpg (104.8 KB, 1 views)
Last Blog Entry: Fobriwap! (Mar 10th, 2008)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #12  
Old Mar 27th, 2008, 13:53
Junior Member
Join Date: Mar 2008
Location: Edinburgh
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Uploaded site different from local site

Quote:
Originally Posted by frinkky View Post
One step at a time

I've attached what I see in ie7. No issue with fonts and no issue with white background, just the centering.

It could be a local cache issue. Anyway, try changing

margin: 0 auto;

to

margin: 0 auto 0 auto;

on #wrap

But what you should do before anything else is fix your markup errors: validation

Well, a couple things to try.
thanks

the page looks quite good. did you have to reload it, or was it like that first time you loaded? i don't trust what ie7 is showing me.

i'll check out the markup errors - will probably be a lot because i haven't done html or css before. just did this by copying and trial and error.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #13  
Old Mar 27th, 2008, 14:12
unitedcraig's Avatar
SuperMember

SuperMember
Join Date: Oct 2007
Location: Stockport
Age: 17
Posts: 844
Blog Entries: 1
Thanks: 0
Thanked 1 Time in 1 Post
Re: Uploaded site different from local site

Quote:
Originally Posted by alowe View Post
i don't trust what ie7 is showing me.
I no this is a bit too late, but what you are best of doing in my opinion is designing for firefox, and then fixing the errors found in IE.

This can save a lot of time and hassle
__________________
Last Blog Entry: A Royal Mistake (Feb 20th, 2008)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #14  
Old Mar 27th, 2008, 14:46
frinkky's Avatar
Super Moderator
Join Date: Oct 2006
Location: Southampton
Age: 30
Posts: 351
Blog Entries: 2
Thanks: 2
Thanked 6 Times in 6 Posts
Re: Uploaded site different from local site

To help you a bit with your validation:

1. You've forgotten the speechmarks on most of your attributes (i.e. <li id="active">)

2. You've got some duplicated ID names, if you need to use more than one per page they need to be set as a class (i.e. <li class="active">

3. heading tags should be outside a tags (i.e. <h2><a href="#">blah</a></h2>)

4. You haven't closed a lot of your <li>'s (see #toplist)

5. some of your attributes are not allowed in XHTML strict (target)

6. should always include alt attributes for images

7. use the self closing <br /> in XHTML Strict if you must use line breaks

8. If you're using self closing tags ( such as <img />) double check you've put in the / as the penultimate character.

9. careful not to use illegal characters in attribute lists (I see a ) in there somewhere)

10. XHTML Strict tags must be in lowercase ( img not IMG or alt instead of ALT)

11. Lastly double check that all your opening tags (<p> for example) are all closed (</p>) and vice versa; any closing tags need to have the opening tags too.

So not that much to do to get it right and you'll be well on your way to understanding XHTML Strict that little bit more. Plus you might fix your centering issue.

I think most people will agree that you fix the obvious errors first before trying to debug the not so obvious so you know you're starting from a clean slate, so to speak.
Last Blog Entry: Fobriwap! (Mar 10th, 2008)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #15  
Old Mar 27th, 2008, 18:45
Junior Member
Join Date: Mar 2008
Location: Edinburgh
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Uploaded site different from local site

ok, i've validated the index.html file. only has a warning now about assuming utf-8. i've checked the meta tag and it is correct, so maybe it's 10gbfreehost that's overriding it. checked the console panel and faq at 10gbfreehost and couldn't find any options relating to this so have decided to live with that bit for now. but all other errors are fixed

onto the rest:
changed to margin: 0 auto 0 auto; in #wrap but still not centred

the side menu (called avmenu) isn't correct (pics attached). on my local version there's a gap between the bottom of the font and the bottom of the block its in. on the online version this gap is gone and the announce section below is thinner (or the font in it is wider).

i tried adding a height: 1.7em; to #avmenu li a { and this worked locally (i.e. if i made it 2em it was a greater gap), but on the online version the same change does nothing

one last thing:
when i open the local version i get a popup in ie7's info bar saying that it has restricted scripts and activex for this page, but i don't see it having that anyway

PS also validated the css file but it had no errors
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #16  
Old Mar 27th, 2008, 18:49
Junior Member
Join Date: Mar 2008
Location: Edinburgh
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Uploaded site different from local site

Quote:
Originally Posted by alowe View Post
the side menu (called avmenu) isn't correct (pics attached).
sorry, here they are
Attached Images
File Type: png local_sidemenu.png (6.8 KB, 2 views)
File Type: png online_sidemenu.png (6.9 KB, 1 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote