• 0

Strange Layout?


Question

Good Morning People,

I have a problem that has been troubling me the last couple of days and I was wondering if you can help me. Our schools website is www.weydonschool.surrey.sch.uk .

It was recently updated to include our new school results (new page added) but since then the layout of the site has gone all wrong - it's as though the CSS file is not being rendered properly. See below.

post-59651-1219913732_thumb.jpg

However, if you force refresh the page with CTRL + F5 it displays fine! I've cleared the cache and all IE settings and I have stopped and restarted the webserver but it's still doing it. This also happens in FF. Here is how the site should look:

post-59651-1219913815_thumb.jpg

If anyone has any suggestions I would be really greatful.

Thank you,

Edited by minkcar
Link to comment
https://www.neowin.net/forum/topic/662676-strange-layout/
Share on other sites

Recommended Posts

  • 0

Install IE8 Beta 2 and you'll see a button at the top that forces "compatibility mode" that website (like Neowin) is not fully compatible with IE8, see the news story and my paragraph on Neowins troubles with IE8 b2 here: https://www.neowin.net/news/main/08/08/28/m...se-ie8-beta-2-2

Link to comment
https://www.neowin.net/forum/topic/662676-strange-layout/#findComment-589708896
Share on other sites

  • 0
Install IE8 Beta 2 and you'll see a button at the top that forces "compatibility mode" that website (like Neowin) is not fully compatible with IE8, see the news story and my paragraph on Neowins troubles with IE8 b2 here: https://www.neowin.net/news/main/08/08/28/m...se-ie8-beta-2-2

But this is IE7 still, I have not installed the IE8 beta.

Link to comment
https://www.neowin.net/forum/topic/662676-strange-layout/#findComment-589708902
Share on other sites

  • 0

Yea I know it's written pretty poorly, it had to be put up quickly, but the point it it was rendering completly fine up until a few days ago and now it doesn't render until you refresh the page for some reason. It's as if the css file isn't being read the first time around but the link to it is in there.

Yea it went wrong after a link was added into the latest news part on the left hand side.

Link to comment
https://www.neowin.net/forum/topic/662676-strange-layout/#findComment-589708944
Share on other sites

  • 0

your css seems to be missing bits and has random sections as well

body

{

background-image: url(Images/Global_Images/BG_Gradient.jpg);

background-color: #630063;

background-position: top;

background-repeat: repeat-x;

margin-top: 0px;

}

.logo

{

position: absolute;

top: 30px;

width: 355px;

left: 30px;

}

ol

{

list-style-image: url(Images/Global_Images/Latest_News.png);

vertical-align: middle;

margin-left: 17px;

}

ul

{

list-style-image: url(Images/Global_Images/Small_Arrow.png);

vertical-align: top;

}

WTF IS THIS FOR?

li

{

pad

ENDING BRACKET

li

{

padding: 3px 0px 5px 15px;

text-align: left;

}

STARTING BRACKET and NAME

width: 70%;

height: 100%;

margin-left: auto;

margin-right: auto;

font-family: Tahoma, Arial;

font-size: 13px;

color: Black;

background-color: White;

background-image: url(Images/Global_Images/Container_BG.png);

background-position: top right;

background-repeat: no-repeat;

padding: 200px 30px 30px 30px;

min-width: 600px;

max-width: 750px;

position: relative;

overflow: hidden;

}

.normaltext

{

font-family: Tahoma, Arial;

font-size: 13px;

color: Black;

}

.menuitem

{

padding: 10px 0px 10px 10px;

border-bottom: 1px solid #640064;

width: 30%;

text-transform: uppercase;

font-family: Tahoma, Arial;

color: Black;

font-size: 15px;

position: relative;

text-decoration: none;

cursor: default;

}

.menuitem:hover

{

padding: 10px 0px 10px 10px;

border-bottom: 1px solid #640064;

width: 30%;

text-transform: uppercase;

font-size: 15px;

position: relative;

text-decoration: none;

cursor: default;

background-image: url(Images/Global_Images/Menu_Item_BG_1.png);

}

#ParentInfo

{

font-family: Arial, Helvetica, sans-serif;

font-size: 24px;

background: #FFF;

color: #52004A;

width: 350px;

height: 230px;

position: absolute;

top: -1px;

left: 100%;

visibility: hidden;

border: 5px solid #52004A;

}

#StudentInfo

{

font-family: Arial, Helvetica, sans-serif;

font-size: 24px;

background: #FFF;

color: #52004A;

width: 310px;

height: 90px;

position: absolute;

top: -1px;

left: 100%;

visibility: hidden;

border: 5px solid #52004A;

}

#AboutWeydon

{

font-family: Arial, Helvetica, sans-serif;

font-size: 24px;

background: #FFF;

color: #52004A;

width: 280px;

height: 90px;

position: absolute;

top: -1px;

left: 100%;

visibility: hidden;

border: 5px solid #52004A;

}

#Media

{

font-family: Arial, Helvetica, sans-serif;

font-size: 24px;

background: #FFF;

color: #52004A;

width: 80px;

height: 70px;

position: absolute;

top: -1px;

left: 100%;

visibility: hidden;

border: 5px solid #52004A;

}

.maincontent

{

width: 67%;

height: auto;

margin-top: 25px;

font-family: Tahoma, Arial;

font-size: 13px;

color: Black;

float: right;

}

WTF THIS ONE ISN'T NEEDED

.maincontent2

{

wid

ENDING BRACKET

.maincontent2

{

width: 66%;

height: auto;

font-family: Tahoma, Arial;

font-size: 13px;

color: Black;

float: right;

text-align: justify;

}

NAME + STARTING BRACKET

%;

height: auto;

margin-top: 25px;

font-family: Tahoma, Arial;

font-size: 13px;

color: Black;

}

.addcontent

{

width: 30%;

height: auto;

margin-top: 25px;

font-family: Tahoma, Arial;

font-size: 13px;

color: Black;

}

.mainheading

{

color: #00573C;

font-size: 25px;

margin-bottom: 10px;

letter-spacing: 2px;

}

.footer

{

width: 70%;

margin-left: auto;

margin-right: auto;

font-family: Tahoma, Arial;

font-size: 13px;

color: Black;

border-top: 1px solid #640064;

background-color: #FFFFFF;

padding: 20px 30px 20px 30px;

min-width: 600px;

max-width: 750px;

}

a

{

color: #00573C;

text-decoration: none;

}

a:hover

{

color: #00573C;

text-decoration: none;

}

a:visited

{

color: #00573C;

text-decoration: none;

}

img

{

border-width: 0px;

}

Link to comment
https://www.neowin.net/forum/topic/662676-strange-layout/#findComment-589708978
Share on other sites

  • 0

You have the header section in there 3 times, lmao. :D

Yea i know its a complete mess we are in the process of cleaning it up, but it still does not explain why it renders wrong, but then displays fine when you CTRL + F5 the page.

The reason for it is purely academic, you still need to fix that mess.

Here's a good starting point:

http://validator.w3.org/check?verbose=1&am...urrey.sch.uk%2F

Link to comment
https://www.neowin.net/forum/topic/662676-strange-layout/#findComment-589709066
Share on other sites

  • 0
Yea i know its a complete mess we are in the process of cleaning it up, but it still does not explain why it renders wrong, but then displays fine when you CTRL + F5 the page.
Because your code is incorrect (and missing in some cases)

And under any circumstances a business/school/company should not let anyone access a non-working website and "because people need to access it" is no excuse.

Link to comment
https://www.neowin.net/forum/topic/662676-strange-layout/#findComment-589709248
Share on other sites

  • 0

BUT IT WAS WORKING, thats what you dont understand, and it works fine if you refresh the page, it just doesnt when you initally load it and thats what i dont understand. how can it not render ok but then render fine when you refresh it? its as though the CSS file isnt being read correctly the first time to position everything correctly.

Link to comment
https://www.neowin.net/forum/topic/662676-strange-layout/#findComment-589709588
Share on other sites

  • 0
BUT IT WAS WORKING, thats what you dont understand, and it works fine if you refresh the page, it just doesnt when you initally load it and thats what i dont understand. how can it not render ok but then render fine when you refresh it? its as though the CSS file isnt being read correctly the first time to position everything correctly.

what are you talking about... i'm using firefox and even if i do a complete refresh, it looks the same.

please understand, the ONLY way for the page to look correct the first time, you need to clean up the mess/errors found in the css file. instead of wondering why it used to work, you should wonder how to make it work again. dwelling in the past solves nothing.

Link to comment
https://www.neowin.net/forum/topic/662676-strange-layout/#findComment-589709874
Share on other sites

  • 0
BUT IT WAS WORKING, thats what you dont understand, and it works fine if you refresh the page, it just doesnt when you initally load it and thats what i dont understand. how can it not render ok but then render fine when you refresh it? its as though the CSS file isnt being read correctly the first time to position everything correctly.

It is a mystery :iiam: lmao

Link to comment
https://www.neowin.net/forum/topic/662676-strange-layout/#findComment-589710972
Share on other sites

  • 0
BUT IT WAS WORKING, thats what you dont understand, and it works fine if you refresh the page, it just doesnt when you initally load it and thats what i dont understand. how can it not render ok but then render fine when you refresh it? its as though the CSS file isnt being read correctly the first time to position everything correctly.

I've tried in multipul browsers and has never worked properly, even with forced refreshes.

Link to comment
https://www.neowin.net/forum/topic/662676-strange-layout/#findComment-589712026
Share on other sites

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • PDF Shaper 15.6 by Razvan Serea PDF Shaper is a set of feature-rich PDF software that makes it simple to split, merge, watermark, sign, optimize, convert, encrypt and decrypt your PDF documents, also delete and move pages, extract text and images. The program is optimized for low CPU resource usage and operates in batch mode, allowing users to process multiple PDF files while doing other work on their computers. PDF Shaper is available in three editions - Free, Premium and Ultimate. Compare and pick edition which is suitable for you. Compatible with Windows 7, 8, 10, 11. Features: Convert PDFs to Word, text, or image files (and vice versa) Merge, split, and watermark documents with precision Insert, move, delete, rotate and crop pages/ranges Rename and organize PDF collections efficiently Encrypt with advanced AES password protection Apply multiple digital signatures for documents Extract text, images, or complete pages from any PDF Benefits: Easy-to-use, intuitive user interface Low CPU resource usage during any process, including conversion Free for personal use and for any non-commercial organization Supports Unicode characters Supports batch processing for any operation Small installation size PDF Shaper 15.6 changelog: Improved overall program performance. Improved image rendering in all tools. Improved XMP information extraction. Improved compatibility with ARM64 systems. Improved DOC to PDF conversion: Improved support for font files. Improved support for picture cropping. Improved support for list formatting. Improved support for text line spacing. Download: PDF Shaper 15.6 | 8.0 MB (Free for personal use only) Link: PDF Shaper Home Page | Screenshot Get alerted to all of our Software updates on Twitter at @NeowinSoftware
    • Yeah, this is absolutely nothing new and EA have done it before. Burnout Paradise, released in 2008, had dynamic advertising billboards that were updated via the internet and targeted people based on location and what EA knew about them from their profile. It was particularly notable for the fact that the Obama presidential campaign ran ads in the game, in an attempt to reach a younger audience who didn't watch broadcast TV any more. It was by no means the first though. Battlefield 2142 from 2006 had the same thing. In fact, Neowin wrote a story about it back then. https://www.neowin.net/news/ba...-in-game-ads-clarification/
    • This is obviously aimed at the education where Apple has lost so much ground to Chromebooks in the last few years, but unless they come up with a comparable management system for education why would anyone switch back?
    • Here's how we arrived at that claim: Note that this is just Play Store downloads. The app is also available on the Galaxy App Store
    • Google Play states the app had more than 50 million downloads. What other metric do you suggest should be used?
  • Recent Achievements

    • One Year In
      Console General earned a badge
      One Year In
    • One Year In
      Twozo Technologies earned a badge
      One Year In
    • One Month Later
      Twozo Technologies earned a badge
      One Month Later
    • Week One Done
      Twozo Technologies earned a badge
      Week One Done
    • Veteran
      branfont went up a rank
      Veteran
  • Popular Contributors

    1. 1
      +primortal
      531
    2. 2
      +Edouard
      206
    3. 3
      PsYcHoKiLLa
      130
    4. 4
      Steven P.
      90
    5. 5
      neufuse
      74
  • Tell a friend

    Love Neowin? Tell a friend!