Results 1 to 13 of 13

Thread: Webpage doesn't structure online, but does offline.

  1. #1
    Join Date
    May 2011

    Unhappy Webpage doesn't structure online, but does offline.

    Hi everyone,

    I wasn't sure what Discussion Board to put this on but thanks in advance.

    I have a HTML webpage written in XHTML 1.0 using CSS.

    I've tried hosting the webpage on both a Windows and Linux CPanl system with the same result and that is the webpage just doesn't structure at all, it's all over the place in Firefox, Chrome, IE 9. But it does look as expected when IE 9 is in compatibility mode or when viewed from IE 8 in normal and compatibility mode.

    However, if I open the .html file locally on my computer the webpages structure perfectly in every browser I throw at it. The only prompt I get is from IE 9 reading 'Internet Explorer restricted this webpage from running scripts or ActiveX controls' then I just click 'Allow Content' and it's fine, I think this is probably just a IE 9 local security setting and nothing to worry about but just thought I'd throw it in encase it gives someone a hint.

    Any help would be greatly appreciated.

  2. #2
    Join Date
    Dec 2005
    American, living in Toronto, ON. CANADA
    Got code? Or, URL? :-)
    I build for: Firefox and tweak for IE

  3. #3
    Join Date
    May 2011

  4. #4
    Join Date
    Aug 2006
    You may want to start correcting the markup errors in your code... For example I notice several <style> declarations that are not in the <head> section of your code. Those aren't legal, so I suppose browsers have the right to ignore them.


  5. #5
    Join Date
    May 2011
    its ugly code....
    Last edited by WebJoel; 05-31-2011 at 10:06 AM. Reason: Do not offer to rebuilt postee sites for pay. This is commercialism and can lead to you being banned

  6. #6
    Join Date
    Dec 2003
    Bucharest, ROMANIA
    Quote Originally Posted by WebProUkraine View Post
    its ugly code....
    I can remade it per 100$
    I hope that is also a joke (You have already asked for 15 bucks in another Thread) Ok, but too many jokes like this are not funny...

  7. #7
    Join Date
    May 2011
    Quote Originally Posted by Kor View Post
    I hope that is also a joke (You have already asked for 15 bucks in another Thread) Ok, but too many jokes like this are not funny...
    Ok it's just a joke. Another purpose it on his site

  8. #8
    Join Date
    Dec 2004
    New York, USA
    Are you using the external stylesheets? If so you might want to double check that all the pages are uploaded and in the correct folders.
    "An expert is a man who tells you a simple thing in a confused way in such a fashion as to make you think the confusion is your own fault."
    - William Castle

    www.baseiber.com - portfolio containing some of my work.
    http://www.ideallandscapesolutions.com - my first brochure style website.

  9. #9
    Join Date
    May 2011
    Hi, new to this site but will try to lend a hand.

    You should first restructure your CSS, it is badly written so some browsers may not interpret it right.

    First issue. How come you have so many <style> tags? If your going to have your styles right on the page, put everything in one style tag, will result in cleaner code and a smaller size page. I cannot give you specific line errors because you have so much code all over the place but will try my best!

    You should transfer all your code to an external style sheet.

    Now for the coding problems I see in your css (Looked through FireBug)..

    1) Well the biggest one of all. you don't have any defined styles for the actual html and body elements of your website. For example, on my sites, I ALWAYS start out declaring margin:0 and padding:0 to ensure all my positioning is exactly how I want it on the page.

    It seems that you most likely want the page centered? Use text-align:center in your html declaration to ensure that anything with a margin set to auto inside your page container is centered on the website. In your #pagecontainer declaration, insert margin:auto and it should align the whole site to the center of the users browser.

    2) you have "2" #pagecontainers, both containing position:relative.. This could cause a potential "misfire" of the command. If that makes any sense.

    3) I don't see where your actual pagecontainer div closes...or maybe I missed it?

    4) There is no need to add an id to the body tag of your page when your wrapping everything in your page container div. Any additional styles can be added through the pagecontainer div..example....

    div#pagecontainer img {
    div#pagecontainer ul {
    Again, your creating a double entity which could produce problems.

    5) You have way to many ID's on your page, only use ID's for the MAIN static elements on your page that will never update (have new content added to it).

    For example, you have set a div id for a button (div id="button")... You could just use the image in the html then set a class to the image..for example..if you had an image for the button and you gave it a class of "myImage"

    img.myImage a {
    div#pagecontainer img.myImage {
    6) The way you have your javascript linking set up is creating a double entity as well. Most of your scripts on your made you links to them at an external source, and also have the script coded right in the page as well...There's no need to have them set up both ways..Either have all the javascript coded in "one" <script type="text/javascript" src="xxxxxx.js"> </script> declaration right on the page (which I don't recommend) or just have separate declarations that links to the several js. files or have all the scripts in one big .js file.

    7) It seems you have quite a bit of Javascripts for a small-sized website. Is there any javascript that you have that you may not being using anymore? If the browsers is rendering javascript to files or elements that are no longer on the page or anything, it will require higher page load time.

    8) In your meta tags, declare the name of the meta first then the content.

    9) Try not to use iframes for anything, they are depricated and may be causing layout errors if the browsers are rendering them right. Especially the new ones. I think I may of saw some ajax scripting as well? If you use ajax to update Div's rather than update iframes.

    Thats a few of the things I noticed. I went through it really fast but hopefully if you fix some of these errors your page will be fresh as new. If you need any more help or anything let me know, or send me a private message. Good luck with your coding adventures!

  10. #10
    Join Date
    May 2011
    OK I went back to the developer and they admitted they weren't sure of hwo to export a website from there system. They tried again but it seemed to be the exact same thing. So I've gone through some of the code myself to get it working.
    It now works fine offline in every browser, but is still having troubles online.
    Any further help would be greaty appreciated.

  11. #11
    Join Date
    Apr 2010
    no default page is showing on the site now

  12. #12
    Join Date
    May 2011

  13. #13
    Join Date
    May 2011

    Thumbs up Fixed.

    The issue has been resolved, along with having to change the doctype... redo all the style etc the end fix was because of the following.

    All I can say is I will never be buying another website from this developer and will do all I can to stop anyone I know from doing the same thing. There original code is TERRIBLE.

    The problem seems to be right here:

    <link rel="stylesheet" type="text/css" href="getcss/index1111.html?Staging=Yes&amp;Stage=Show&amp;" media="screen"/>
    This file contains all the css that should structure the site correctly. My guess is that because it's an HTML file and doesn't have a <style> and </style> tag in it, normal modern browsers ignore any css in it, but IE renders it as normal.

    Try renaming that file to index1111.css and relinking to it. See if that sorts things out.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center



X vBulletin 4.2.2 Debug Information

  • Page Generation 0.20418 seconds
  • Memory Usage 2,995KB
  • Queries Executed 15 (?)
More Information
Template Usage (34):
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_global_above_footer
  • (1)ad_global_below_navbar
  • (1)ad_global_header1
  • (1)ad_global_header2
  • (1)ad_navbar_below
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)ad_thread_first_post_content
  • (1)ad_thread_last_post_content
  • (2)bbcode_code
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)headinclude_bottom
  • (13)memberaction_dropdown
  • (1)navbar
  • (4)navbar_link
  • (1)navbar_moderation
  • (1)navbar_noticebit
  • (1)navbar_tabs
  • (2)option
  • (13)postbit
  • (13)postbit_onlinestatus
  • (13)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available (6):
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files (26):
  • ./showthread.php
  • ./global.php
  • ./includes/class_bootstrap.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/functions_navigation.php
  • ./includes/class_friendly_url.php
  • ./includes/class_hook.php
  • ./includes/class_bootstrap_framework.php
  • ./vb/vb.php
  • ./vb/phrase.php
  • ./includes/functions_facebook.php
  • ./includes/functions_calendar.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_notice.php
  • ./packages/vbattach/attach.php
  • ./vb/types.php
  • ./vb/cache.php
  • ./vb/cache/db.php
  • ./vb/cache/observer/db.php
  • ./vb/cache/observer.php 

Hooks Called (70):
  • init_startup
  • friendlyurl_resolve_class
  • init_startup_session_setup_start
  • database_pre_fetch_array
  • database_post_fetch_array
  • init_startup_session_setup_complete
  • global_bootstrap_init_start
  • global_bootstrap_init_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • load_show_variables
  • load_forum_show_variables
  • global_state_check
  • global_bootstrap_complete
  • global_start
  • style_fetch
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • strip_bbcode
  • friendlyurl_clean_fragment
  • friendlyurl_geturl
  • forumjump
  • cache_templates
  • cache_templates_process
  • template_register_var
  • template_render_output
  • fetch_template_start
  • fetch_template_complete
  • parse_templates
  • fetch_musername
  • notices_check_start
  • notices_noticebit
  • process_templates_complete
  • friendlyurl_redirect_canonical
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • memberaction_dropdown
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • build_navigation_data
  • build_navigation_array
  • check_navigation_permission
  • process_navigation_links_start
  • process_navigation_links_complete
  • set_navigation_menu_element
  • build_navigation_menudata
  • build_navigation_listdata
  • build_navigation_list
  • set_navigation_tab_main
  • set_navigation_tab_fallback
  • navigation_tab_complete
  • fb_like_button
  • showthread_complete
  • page_templates