Problem with website, can anyone help?

Discussion in 'HTML & Website Design' started by Janice, Sep 2, 2006.

  1. #1
    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.
     
    Janice, Sep 2, 2006 IP
  2. sketch

    sketch Well-Known Member

    Messages:
    898
    Likes Received:
    26
    Best Answers:
    0
    Trophy Points:
    148
    #2
    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.
     
    sketch, Sep 2, 2006 IP
  3. Janice

    Janice Guest

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    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.
     
    Janice, Sep 3, 2006 IP
  4. JEET

    JEET Notable Member

    Messages:
    3,832
    Likes Received:
    502
    Best Answers:
    19
    Trophy Points:
    265
    #4
    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>
     
    JEET, Sep 5, 2006 IP
  5. Janice

    Janice Guest

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    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:

    [​IMG]

    Any idea what to do?

    Thanks in advance.
     
    Janice, Sep 5, 2006 IP
  6. sketch

    sketch Well-Known Member

    Messages:
    898
    Likes Received:
    26
    Best Answers:
    0
    Trophy Points:
    148
    #6
    Did you fix the problem? When I loaded your page it looked fine, with images.
     
    sketch, Sep 5, 2006 IP