Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 7 of 7
  1. #1
    Junior Member
    Join Date
    Mar 2010
    Location
    UK
    Posts
    2
    Member #
    21373
    Hi there,

    I have a site that has only just gone on the web.

    When the page loads it initially site on the right and then shifts left (to centralise the page)

    I have no clue as to why this is happening - any help would be greatly appreciated.

    The site is built on Joomla 1.5. The address is http://www.spottedpanda.com

    Kind regards

    Steve

  2.  

  3. #2
    Junior Member
    Join Date
    Feb 2010
    Posts
    10
    Member #
    21183
    Hello Sdavies1,

    I wish I could tell you what is wrong, but after analyzing the source code I found nothing wrong. Try validating the HTML / XHTML / CSS against the W3 validator, found >here<

    Also, try asking this question in the Joomla Help Section

    Hope it helps,
    -Jeff

  4. #3
    WDF Staff smoseley's Avatar
    Join Date
    Mar 2003
    Location
    Boston, MA
    Posts
    9,729
    Member #
    819
    Liked
    205 times
    There are a number of things wrong with how your site is loading.

    My guess is that the ultimate cause for the shift from the right is that your body has a text-align: justify on it.

    The other source of your problems is that your content is all in a table for layout purposes. This is a big mistake, if for no other reason than a table doesn't render until all of its contents are loaded.

    What that means is your site starts "justified" (table is probably prepended by some other content, so it gets pushed over to the right), then after everything is loaded, the table properly renders and pops back to center.

    Dump the table-based layout and you'll be fine.

    Short-term fix, though, would probably be to get rid of the text-align on your body element - it's not really used anyway.

    That's on template.css, line 4.

    Good luck!

  5. #4
    WDF Staff smoseley's Avatar
    Join Date
    Mar 2003
    Location
    Boston, MA
    Posts
    9,729
    Member #
    819
    Liked
    205 times
    By the way, is that Joomla?

  6. #5
    Junior Member
    Join Date
    Mar 2010
    Location
    UK
    Posts
    2
    Member #
    21373
    Yes it is Joomla 1.5

    I have removed the "justified" and it still is shifting left.

    The front page is fully W3C validated with no errors (CSS & XHTML).

    In terms of dumping the table based layout - This is not my design but I am looking to correct the small problems, not redesign the whole site.

    Any more ideas?

    Steve

  7. #6
    WDF Staff smoseley's Avatar
    Join Date
    Mar 2003
    Location
    Boston, MA
    Posts
    9,729
    Member #
    819
    Liked
    205 times
    Mealy, banned for pre-spam.

  8. #7
    Senior Member aeroweb99's Avatar
    Join Date
    Feb 2008
    Location
    Port Huron, Michigan
    Posts
    1,037
    Member #
    16468
    Liked
    1 times
    Quote Originally Posted by smoseley
    Mealy, banned for pre-spam.
    lmao, you could see it coming couldn't you!


Remove Ads

Posting Permissions

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

Search tags for this page

web page shifts when loading

Click on a term to search for related topics.
All times are GMT -6. The time now is 02:32 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com