Help Please

Discussion in 'HTML & Website Design' started by xTutorials, Feb 25, 2008.

  1. #1
    I have to make a few changes to a website. I made a small script that calculates the prices of products. The script works perfect, BUT the content of the pages the script and everything else moves down and there is a huge space between the tot menu and the content. You can clearly see what I am talking about here: http://www.printpress.ro/content/view/16/52/
    Does anyone know how I can fix this?

    NOTE: This only appears in IE5 and 6. In FF and IE7 it works perfect.

     
    xTutorials, Feb 25, 2008 IP
  2. mds

    mds Active Member

    Messages:
    256
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    58
    #2
    works fine here and there is not too much space.
     
    mds, Feb 25, 2008 IP
  3. Rio38

    Rio38 Peon

    Messages:
    334
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I agree, it looks fine to me also.
     
    Rio38, Feb 25, 2008 IP
  4. xTutorials

    xTutorials Well-Known Member

    Messages:
    376
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    128
    #4
    The problem only is in IE 6 and under. All other browsers render the page corectly (at least the ones I tried)
     
    xTutorials, Feb 25, 2008 IP
  5. dtm32236

    dtm32236 Guest

    Messages:
    320
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #5
    first, your doctype is incorrect... a wrong doctype will usually make your site break in different browsers (IE).
    http://www.alistapart.com/articles/doctype/

    wait - what? has anyone looked at the source of this page???
    there's multiple <head> and <body> tags. This code is a wreck... that may have something to do with it. I don't even get what's going on there...

    you can only have one <html>, <head> and <body> tag (2 if you count the closing tags).

    PS - in this CSS file:
    templates/simplify_black/css/template_css.css
    you have position:absolut; (you forgot the 'e' at the end)

    and in this file:
    http://www.printpress.ro/ (index.html, i'm guessing)
    you have height:20;
    you need to have a unit for CSS - height:20px;
     
    dtm32236, Feb 25, 2008 IP
  6. xTutorials

    xTutorials Well-Known Member

    Messages:
    376
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    128
    #6
    OK! Now I only have one <head> and body tags but the problem stil isen't solved.Do you have other suggestions please?
     
    xTutorials, Feb 25, 2008 IP
  7. dtm32236

    dtm32236 Guest

    Messages:
    320
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #7
    much better...

    fix your doctype before you do anything. this is often the reason for broken pages.
     
    dtm32236, Feb 25, 2008 IP
  8. xTutorials

    xTutorials Well-Known Member

    Messages:
    376
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    128
    #8
    I do have this doctype now:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

    But the problem still persists.
     
    xTutorials, Feb 25, 2008 IP
  9. dtm32236

    dtm32236 Guest

    Messages:
    320
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #9
    <?xml version="1.0" encoding="iso-8859-1"?>

    remove this...

    it's probably not going to fix the problem - but it's proper coding... and improper coding can very often lead to future problems (like your page breaking in an updated browser)
     
    dtm32236, Feb 25, 2008 IP
  10. xTutorials

    xTutorials Well-Known Member

    Messages:
    376
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    128
    #10
    OK! Problem was solved. It wasn't in the way I wanted to...but it worked. I integrated the entire content part in a <div></div> and set it to position absolute. I don't like to use absolute values but I guess I did not have a choice. The person who coded the template did not test it corectly I think. Anyway the site works now.
    10x you all for your replays and special 10x to dtm32236
     
    xTutorials, Feb 25, 2008 IP
  11. dtm32236

    dtm32236 Guest

    Messages:
    320
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #11
    nice - no problem.

    glad it worked out...
     
    dtm32236, Feb 25, 2008 IP