Hi, I am from Holland, hope this is the right sub-board to ask my question. I have a website since one week, but the site does not work 100%, that means when one clicks on the site, at times it does not show the layout and pics, just the plain text. For some reason the (host?) does not take the info from the style-sheet. Me and the one who built my website aswell as my hosting provider have tried to solve the problem for a week now, but the problem remains. Does anyone has an idea what to do about it, the site has just one page (it is a one-page webportal) with links to health-related websites, 343 links ans some pcitures. This is the link btw: http://www.afslankplaza.nl/ Thanks in advance. Janice.
The only time I've seen what you're describing is when the CSS file doesn't load (that's why you get plain text, none of the "formatting" has been loaded). Why it happens so much for you I don't know, I wonder if changing this: <link href="bestanden/style.css" rel="stylesheet" type="text/css"> to this: <style type="text/css" media="screen">@import url("bestanden/style.css");</style> might help? This is the code I use all the time and I've never had a problem.
Thanks, I will ask the man who makes my website to try this. Btw, do you think it is an option to put the style-sheet into the main index instead of in a sheet apart? The site only has one page. Thanks for your help! Janice.
You can put the style sheet in the page itself instead of loading it from another external file. Try replacing: <link rel="stylesheet" type="text/css" href="style.css"> with: <style type="text/css"> <!-- All the content of your style sheet here --> </style>
That has been done now, and the layout shows ok, but the pics are left out part of the time, here is a screencap from last night: Any idea what to do? Thanks in advance.