|
|
 |
|
March 26th, 2008, 10:44 PM
|
#1
|
|
New Member
Join Date: Mar 2008
Location: Edinburgh
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0
|
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.
|
|
|
March 26th, 2008, 10:51 PM
|
#2
|
|
Most Reputable Member
Join Date: Feb 2008
Location: In My Own Little World
Age: 15
Posts: 1,346
Thanks: 2
Thanked 45 Times in 45 Posts
Rep Altering Power: 0
|
Re: Uploaded site different from local site
most likely the link to your stylesheet got messed up. double check it.
|
|
|
March 26th, 2008, 10:51 PM
|
#3
|
|
Reputable Member
Join Date: Oct 2006
Location: Southampton
Age: 31
Posts: 359
Thanks: 2
Thanked 8 Times in 8 Posts
Rep Altering Power: 0
|
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.
|
|
|
March 26th, 2008, 11:48 PM
|
#4
|
|
New Member
Join Date: Mar 2008
Location: Edinburgh
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0
|
Re: Uploaded site different from local site
Quote:
Originally Posted by CloudedVision
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.
|
|
|
March 26th, 2008, 11:58 PM
|
#5
|
|
Most Reputable Member
Join Date: Feb 2008
Location: In My Own Little World
Age: 15
Posts: 1,346
Thanks: 2
Thanked 45 Times in 45 Posts
Rep Altering Power: 0
|
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?
|
|
|
March 27th, 2008, 12:00 AM
|
#6
|
|
New Member
Join Date: Mar 2008
Location: Edinburgh
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0
|
Re: Uploaded site different from local site
Quote:
Originally Posted by frinkky
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.
|
|
|
March 27th, 2008, 12:13 AM
|
#7
|
|
Reputable Member
Join Date: Oct 2006
Location: Southampton
Age: 31
Posts: 359
Thanks: 2
Thanked 8 Times in 8 Posts
Rep Altering Power: 0
|
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.
|
|
|
March 27th, 2008, 12:14 AM
|
#8
|
|
New Member
Join Date: Mar 2008
Location: Edinburgh
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0
|
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
|
|
|
March 27th, 2008, 12:18 AM
|
#9
|
|
New Member
Join Date: Mar 2008
Location: Edinburgh
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0
|
Re: Uploaded site different from local site
Quote:
Originally Posted by frinkky
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.
|
|
|
March 27th, 2008, 12:26 AM
|
#10
|
|
New Member
Join Date: Mar 2008
Location: Edinburgh
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0
|
Re: Uploaded site different from local site
Quote:
Originally Posted by frinkky
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
|
|
|
March 27th, 2008, 12:37 AM
|
#11
|
|
Reputable Member
Join Date: Oct 2006
Location: Southampton
Age: 31
Posts: 359
Thanks: 2
Thanked 8 Times in 8 Posts
Rep Altering Power: 0
|
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.
|
|
|
March 27th, 2008, 10:53 AM
|
#12
|
|
New Member
Join Date: Mar 2008
Location: Edinburgh
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0
|
Re: Uploaded site different from local site
Quote:
Originally Posted by frinkky
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.
|
|
|
March 27th, 2008, 11:12 AM
|
#13
|
|
Highly Reputable Member
SuperMember
Join Date: Oct 2007
Location: Stockport
Age: 18
Posts: 844
Thanks: 0
Thanked 1 Time in 1 Post
Rep Altering Power: 0
|
Re: Uploaded site different from local site
Quote:
Originally Posted by alowe
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 
|
|
|
March 27th, 2008, 11:46 AM
|
#14
|
|
Reputable Member
Join Date: Oct 2006
Location: Southampton
Age: 31
Posts: 359
Thanks: 2
Thanked 8 Times in 8 Posts
Rep Altering Power: 0
|
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.
|
|
|
March 27th, 2008, 03:45 PM
|
#15
|
|
New Member
Join Date: Mar 2008
Location: Edinburgh
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0
|
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 
|
|
|
March 27th, 2008, 03:49 PM
|
#16
|
|
New Member
Join Date: Mar 2008
Location: Edinburgh
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0
|
Re: Uploaded site different from local site
Quote:
Originally Posted by alowe
the side menu (called avmenu) isn't correct (pics attached).
|
sorry, here they are
|
|
|
March 27th, 2008, 03:55 PM
|
#17
|
|
New Member
Join Date: Mar 2008
Location: Edinburgh
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0
|
Re: Uploaded site different from local site
here's those two images in the same image so it's easier to see.
PS the name of the css thing for the side menu is avmenu - i haven't renamed it something better yet.
|
|
|
March 27th, 2008, 05:54 PM
|
#18
|
|
Reputable Member
Join Date: Oct 2006
Location: Southampton
Age: 31
Posts: 359
Thanks: 2
Thanked 8 Times in 8 Posts
Rep Altering Power: 0
|
Re: Uploaded site different from local site
Just add some padding to the bottom of the buttons. Something like:
Code:
#whatever li {
padding:0 0 5px 0;
}
|
|
|
March 27th, 2008, 08:19 PM
|
#19
|
|
New Member
Join Date: Mar 2008
Location: Edinburgh
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0
|
Re: Uploaded site different from local site
Quote:
Originally Posted by frinkky
Just add some padding to the bottom of the buttons. Something like:
Code:
#whatever li {
padding:0 0 5px 0;
}
|
lol frinkky, was so easy after all
i went through all the other webpages and fixed all the markup errors (which took hours), except one:
in http://aaronmicalowe.10gbfreehost.com/videos.html i have copied several embedded links to youtube videos. unfortunately xhtml don't like the embed keyword inside the links. i found a link which explained how to fix this here: http://alistapart.com/articles/flashsatay but since i only started doing html a few days ago, after reading a bit of this my mind finally melted
totally  i feel like a zombie
anyway, can someone please tell me how you're supposed to write the following html in html/ css/ xhtml/whatever in a way that is still strict.
<object width="210" height="175"><param name="movie"
value=" http://www.youtube.com/v/7U7Zhrhy7IQ...</param><param name="wmode"
value="transparent"></param><embed src=" http://www.youtube.com/v/7U7Zhrhy7IQ&hl=en"
type="application/x-shockwave-flash" wmode="transparent" width="210"
height="175"></embed></object>
thanks, i appreciate the help as otherwise i'd have to go back to school just to understand the basics of some of this stuff 
|
|
|
March 27th, 2008, 08:59 PM
|
#20
|
|
Reputable Member
Join Date: Oct 2006
Location: Southampton
Age: 31
Posts: 359
Thanks: 2
Thanked 8 Times in 8 Posts
Rep Altering Power: 0
|
Re: Uploaded site different from local site
Hmm, not embedded youtube videos before, but a quick Google found this
Its all good practice 
|
|
|
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
Similar Threads
|
| Thread |
Thread Starter |
Forum |
Replies |
Last Post |
|
I bring this site up again because, I have no idea how to make this site pull in.
|
TheSealPortalTeam |
Full Website Reviews |
4 |
June 10th, 2008 08:46 AM |
|
Website, Web-Site or Web site?
|
Voodoochilli |
The Café |
25 |
October 12th, 2007 09:19 PM |
|
off-site linking to a particular page in a site made with frames. NEED HELP
|
vandiermen |
HTML, XHTML and CSS |
1 |
August 6th, 2006 09:30 AM |
|
Changes when uploaded
|
pepe_starr |
HTML, XHTML and CSS |
3 |
March 6th, 2006 05:33 PM |
|
[req] Free basic web templates site + button design site
|
slorryy |
HTML, XHTML and CSS |
3 |
February 17th, 2006 01:05 PM |
|