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.
The problem only is in IE 6 and under. All other browsers render the page corectly (at least the ones I tried)
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;
OK! Now I only have one <head> and body tags but the problem stil isen't solved.Do you have other suggestions please?
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.
<?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)
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