LondonVirus
11-03-2009, 11:04 AM
Hi,
I have some issues with the site I am working on, I have spent 5 hours looking for a solution on the web but I can't seem to find it. The problem is that I have coded a page in HTML:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2">
<meta name="description" content="SM1 & SM2 Local Magazine">
<meta name="keywords" content="SM1, SM2, Magazine">
<meta name="author" content="MG Computers And Electronics">
<link rel="stylesheet" type="text/css" href="CSS/Default.css">
<title>Welcome to SM1 & SM2Local</title>
</head>
<body>
<div id="div0">
<div id="div1">
<img src="Images/Magazine/2009/Nov2009/November_2009_Banner.jpg" height="100" width="1000" border="0" alt="Please Upgrade Browser">
</div>
<div id="div2">
<a href="Index.html"><img src="Images/Magazine/2009/Nov2009/Menu/Nov2009_Menu_Logo.gif" height="50" width="200" border="0" alt="Please Upgrade Browser"></a>
<a href="Index.html"><img src="Images/Magazine/2009/Nov2009/Menu/Nov2009_Menu_5Blank.gif" height="50" width="200" border="0" alt="Please Upgrade Browser"></a>
<a href="Index.html"><img src="Images/Magazine/2009/Nov2009/Menu/Nov2009_Menu_Home.gif" height="20" width="200" border="0" alt="Please Upgrade Browser"></a>
<a href="Index.html"><img src="Images/Magazine/2009/Nov2009/Menu/Nov2009_Menu_3Blank.gif" height="30" width="200" border="0" alt="Please Upgrade Browser"></a>
<a href="Index.html"><img src="Images/Magazine/2009/Nov2009/Menu/Nov2009_Menu_Local_News.gif" height="20" width="200" border="0" alt="Please Upgrade Browser"></a>
<a href="Index.html"><img src="Images/Magazine/2009/Nov2009/Menu/Nov2009_Menu_1Blank.gif" height="10" width="200" border="0" alt="Please Upgrade Browser"></a>
<a href="Index.html"><img src="Images/Magazine/2009/Nov2009/Menu/Nov2009_Menu_E-magazine.gif" height="20" width="200" border="0"alt="Please Upgrade Browser"></a>
<a href="Index.html"><img src="Images/Magazine/2009/Nov2009/Menu/Nov2009_Menu_1Blank.gif" height="10" width="200" border="0" alt="Please Upgrade Browser"></a>
<a href="Index.html"><img src="Images/Magazine/2009/Nov2009/Menu/Nov2009_Menu_Competitions.gif" height="20" width="200" border="0" alt="Please Upgrade Browser"></a>
<a href="Index.html"><img src="Images/Magazine/2009/Nov2009/Menu/Nov2009_Menu_3Blank.gif" height="30" width="200" border="0" alt="Please Upgrade Browser"></a>
<a href="Index.html"><img src="Images/Magazine/2009/Nov2009/Menu/Nov2009_Menu_About_Us.gif" height="20" width="200" border="0" alt="Please Upgrade Browser"></a>
<a href="Index.html"><img src="Images/Magazine/2009/Nov2009/Menu/Nov2009_Menu_1Blank.gif" height="10" width="200" border="0" alt="Please Upgrade Browser"></a>
<a href="Index.html"><img src="Images/Magazine/2009/Nov2009/Menu/Nov2009_Menu_Contact_Us.gif" height="20" width="200" border="0" alt="Please Upgrade Browser"></a>
<a href="Index.html"><img src="Images/Magazine/2009/Nov2009/Menu/Nov2009_Menu_3Blank.gif" height="30" width="200" border="0" alt="Please Upgrade Browser"></a>
<a href="Index.html"><img src="Images/Magazine/2009/Nov2009/Menu/Nov2009_Menu_Editor.gif" height="20" width="200" border="0" alt="Please Upgrade Browser"></a>
<a href="Index.html"><img src="Images/Magazine/2009/Nov2009/Menu/Nov2009_Menu_1Blank.gif" height="10" width="200" border="0" alt="Please Upgrade Browser"></a>
<a href="Index.html"><img src="Images/Magazine/2009/Nov2009/Menu/Nov2009_Menu_Webmaster.gif" height="20" width="200" border="0" alt="Please Upgrade Browser"></a>
<a href="Index.html"><img src="Images/Magazine/2009/Nov2009/Menu/Nov2009_Menu_3Blank.gif" height="30" width="200" border="0" alt="Please Upgrade Browser"></a>
<a href="Index.html"><img src="Images/Magazine/2009/Nov2009/Menu/Nov2009_Menu_Advertise_With_Us.gif" height="20" width="200" border="0" alt="Please Upgrade Browser"></a>
<a href="Index.html"><img src="Images/Magazine/2009/Nov2009/Menu/Nov2009_Menu_5Blank.gif" height="50" width="200" border="0" alt="Please Upgrade Browser"></a>
<a href="Index.html"><img src="Images/Magazine/2009/Nov2009/Menu/Nov2009_Menu_5Blank.gif" height="50" width="200" border="0" alt="Please Upgrade Browser"></a>
<a href="Index.html"><img src="Images/Magazine/2009/Nov2009/Menu/Nov2009_Menu_3Blank.gif" height="30" width="200" border="0" alt="Please Upgrade Browser"></a>
<a href="Index.html"><img src="Images/Magazine/2009/Nov2009/Menu/Nov2009_Menu_1Blank.gif" height="10" width="200" border="0" alt="Please Upgrade Browser"></a>
<a href="Index.html"><img src="Images/Magazine/2009/Nov2009/Menu/Nov2009_Menu_Bottom.gif" height="45" width="200" border="0" alt="Please Upgrade Browser"></a>
</div>
<div id="div3">
This site is currently being built by<br>
MG Computers And Electronics: 08000 304 764<br>
<br>
A copy of the paper based magazine can be downloaded from here
<a href="Downloads/Magazine/2009/November_2009.pdf">November_2009</a><br><br>
<font size="2" face="verdana" color="red">
Please note, the site is expected to be fully working by the 1st of November 2009<br><br>
We estimate 10,000 viewers per month, starting from the first week of November 2009<br><br>
Should you wish to be one of the first to advertise on our site, please contact us<br>
Webmaster.SM1Local@MGComputersAndElectronics.co.uk
</font>
</div>
<div id="div4">
<a href="Webmaster.html"><img src="Images/Adverts/Static_Adverts/Defaults/Placed_Advert_banner.jpg" height="100" width="200" border="0" alt="Please Upgrade Browser"></a>
</div>
<div id="div5">
<a href="Webmaster.html"><img src="Images/Adverts/Static_Adverts/Defaults/Placed_Advert_banner.jpg" height="100" width="200" border="0" alt="Please Upgrade Browser"></a>
</div>
<div id="div6">
<a href="Webmaster.html"><img src="Images/Adverts/Static_Adverts/Defaults/Place_Advert_banner.jpg" height="100" width="200" border="0" alt="Please Upgrade Browser"></a>
</div>
<div id="div7">
<a href="Webmaster.html"><img src="Images/Adverts/Static_Adverts/Defaults/Place_Advert_banner.jpg" height="100" width="200" border="0" alt="Please Upgrade Browser"></a>
</div>
<div id="div8">
<a href="Webmaster.html"><img src="Images/Adverts/Static_Adverts/Defaults/Place_Advert_banner.jpg" height="100" width="200" border="0" alt="Please Upgrade Browser"></a>
</div>
<div id="div9">
<a href="Webmaster.html"><img src="Images/Adverts/Static_Adverts/Defaults/Place_Advert_banner.jpg" height="100" width="200" border="0" alt="Please Upgrade Browser"></a>
</div>
<div id="div10">
<a href="http://www.RebeccasKitchen.co.uk" target="_blank"><img src="Images/Adverts/Static_Adverts/Rebeccas_Kitchen/Rebeccas_Kitchen_Banner.jpg" height="100" width="1000" border="0" alt="Please Upgrade Browser"></a>
</div>
</div>
</body>
</html>
The page has external CSS file:
Body {
Color: #000000;
Font-Family: Verdana;
Background-Color: #FFF68F;
margin: 0px;
}
A:Link {
Color: #FFD600;
Font-Family: Verdana;
Text-Decoration: none;
}
A:Hover {
Color: #FFD600;
Font-Family: Verdana;
Text-Decoration: none;
}
A:Active {
Color: #FFD600;
Font-Family: Verdana;
Text-Decoration: none;
}
A:Visited {
Color: #FFD600;
Font-Family: Verdana;
Text-Decoration: none;
}
#Div0 {
Position: Absolute;
left: 10%;
}
#Div1 {
Position: absolute;
Top: 5px;
Left: 5px;
Width: 1000px;
Height: 100px;
Color: #000000;
Font-Family: Verdana;
Background-Color: #FFFFFF;
margin: 0px;
}
#Div2 {
Position: Absolute;
Top: 110px;
Left: 5px;
Width: 200px;
Height: 625px;
Color: #000000;
Font-Family: Verdana;
Background-Color: #FFF68F;
margin: 0px;
}
#Div3 {
Position: Absolute;
Top: 110px;
Left: 210px;
Width: 590px;
Height: 625px;
Color: #000000;
Font-Family: Verdana;
Background-Color: #FFFFFF;
margin: 0px;
}
#Div4 {
Position: Absolute;
Top: 110px;
Left: 805px;
Width: 200px;
Height: 100px;
Color: #000000;
Font-Family: Verdana;
Background-Color: #FFFFFF;
margin: 0px;
}
#Div5 {
Position: absolute;
Top: 215px;
Left: 805px;
Width: 200px;
Height: 100px;
Color: #000000;
Font-Family: Verdana;
Background-Color: #FFFFFF;
margin: 0px;
}
#Div6 {
Position: absolute;
Top: 320px;
Left: 805px;
Width: 200px;
Height: 100px;
Color: #000000;
Font-Family: Verdana;
Background-Color: #FFFFFF;
margin: 0px;
}
#Div7 {
Position: absolute;
Top: 425px;
Left: 805px;
Width: 200px;
Height: 100px;
Color: #000000;
Font-Family: Verdana;
Background-Color: #FFFFFF;
margin: 0px;
}
#Div8 {
Position: absolute;
Top: 530px;
Left: 805px;
Width: 200px;
Height: 100px;
Color: #000000;
Font-Family: Verdana;
Background-Color: #FFFFFF;
margin: 0px;
}
#Div9 {
Position: absolute;
Top: 635px;
Left: 805px;
Width: 200px;
Height: 100px;
Color: #000000;
Font-Family: Verdana;
Background-Color: #FFFFFF;
margin: 0px;
}
#Div10 {
Position: absolute;
Top: 740px;
Left: 5px;
Width: 1000px;
Height: 100px;
Color: #000000;
Font-Family: Verdana;
Background-Color: #FFFFFF;
margin: 0px;
}
This all works fine untill I add the doctype that you can see above in the HTML section, at this point the css positioning does not apply anymore and the page looks a mess as you can see on http://SM1Local.co.uk
I have validated both pages and they are both 100% correct,
I really don't know what to do please help!:(
PS: The issue is the same in 5 browsers, IE, FF, Opera, Chrome, Safari
I have some issues with the site I am working on, I have spent 5 hours looking for a solution on the web but I can't seem to find it. The problem is that I have coded a page in HTML:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2">
<meta name="description" content="SM1 & SM2 Local Magazine">
<meta name="keywords" content="SM1, SM2, Magazine">
<meta name="author" content="MG Computers And Electronics">
<link rel="stylesheet" type="text/css" href="CSS/Default.css">
<title>Welcome to SM1 & SM2Local</title>
</head>
<body>
<div id="div0">
<div id="div1">
<img src="Images/Magazine/2009/Nov2009/November_2009_Banner.jpg" height="100" width="1000" border="0" alt="Please Upgrade Browser">
</div>
<div id="div2">
<a href="Index.html"><img src="Images/Magazine/2009/Nov2009/Menu/Nov2009_Menu_Logo.gif" height="50" width="200" border="0" alt="Please Upgrade Browser"></a>
<a href="Index.html"><img src="Images/Magazine/2009/Nov2009/Menu/Nov2009_Menu_5Blank.gif" height="50" width="200" border="0" alt="Please Upgrade Browser"></a>
<a href="Index.html"><img src="Images/Magazine/2009/Nov2009/Menu/Nov2009_Menu_Home.gif" height="20" width="200" border="0" alt="Please Upgrade Browser"></a>
<a href="Index.html"><img src="Images/Magazine/2009/Nov2009/Menu/Nov2009_Menu_3Blank.gif" height="30" width="200" border="0" alt="Please Upgrade Browser"></a>
<a href="Index.html"><img src="Images/Magazine/2009/Nov2009/Menu/Nov2009_Menu_Local_News.gif" height="20" width="200" border="0" alt="Please Upgrade Browser"></a>
<a href="Index.html"><img src="Images/Magazine/2009/Nov2009/Menu/Nov2009_Menu_1Blank.gif" height="10" width="200" border="0" alt="Please Upgrade Browser"></a>
<a href="Index.html"><img src="Images/Magazine/2009/Nov2009/Menu/Nov2009_Menu_E-magazine.gif" height="20" width="200" border="0"alt="Please Upgrade Browser"></a>
<a href="Index.html"><img src="Images/Magazine/2009/Nov2009/Menu/Nov2009_Menu_1Blank.gif" height="10" width="200" border="0" alt="Please Upgrade Browser"></a>
<a href="Index.html"><img src="Images/Magazine/2009/Nov2009/Menu/Nov2009_Menu_Competitions.gif" height="20" width="200" border="0" alt="Please Upgrade Browser"></a>
<a href="Index.html"><img src="Images/Magazine/2009/Nov2009/Menu/Nov2009_Menu_3Blank.gif" height="30" width="200" border="0" alt="Please Upgrade Browser"></a>
<a href="Index.html"><img src="Images/Magazine/2009/Nov2009/Menu/Nov2009_Menu_About_Us.gif" height="20" width="200" border="0" alt="Please Upgrade Browser"></a>
<a href="Index.html"><img src="Images/Magazine/2009/Nov2009/Menu/Nov2009_Menu_1Blank.gif" height="10" width="200" border="0" alt="Please Upgrade Browser"></a>
<a href="Index.html"><img src="Images/Magazine/2009/Nov2009/Menu/Nov2009_Menu_Contact_Us.gif" height="20" width="200" border="0" alt="Please Upgrade Browser"></a>
<a href="Index.html"><img src="Images/Magazine/2009/Nov2009/Menu/Nov2009_Menu_3Blank.gif" height="30" width="200" border="0" alt="Please Upgrade Browser"></a>
<a href="Index.html"><img src="Images/Magazine/2009/Nov2009/Menu/Nov2009_Menu_Editor.gif" height="20" width="200" border="0" alt="Please Upgrade Browser"></a>
<a href="Index.html"><img src="Images/Magazine/2009/Nov2009/Menu/Nov2009_Menu_1Blank.gif" height="10" width="200" border="0" alt="Please Upgrade Browser"></a>
<a href="Index.html"><img src="Images/Magazine/2009/Nov2009/Menu/Nov2009_Menu_Webmaster.gif" height="20" width="200" border="0" alt="Please Upgrade Browser"></a>
<a href="Index.html"><img src="Images/Magazine/2009/Nov2009/Menu/Nov2009_Menu_3Blank.gif" height="30" width="200" border="0" alt="Please Upgrade Browser"></a>
<a href="Index.html"><img src="Images/Magazine/2009/Nov2009/Menu/Nov2009_Menu_Advertise_With_Us.gif" height="20" width="200" border="0" alt="Please Upgrade Browser"></a>
<a href="Index.html"><img src="Images/Magazine/2009/Nov2009/Menu/Nov2009_Menu_5Blank.gif" height="50" width="200" border="0" alt="Please Upgrade Browser"></a>
<a href="Index.html"><img src="Images/Magazine/2009/Nov2009/Menu/Nov2009_Menu_5Blank.gif" height="50" width="200" border="0" alt="Please Upgrade Browser"></a>
<a href="Index.html"><img src="Images/Magazine/2009/Nov2009/Menu/Nov2009_Menu_3Blank.gif" height="30" width="200" border="0" alt="Please Upgrade Browser"></a>
<a href="Index.html"><img src="Images/Magazine/2009/Nov2009/Menu/Nov2009_Menu_1Blank.gif" height="10" width="200" border="0" alt="Please Upgrade Browser"></a>
<a href="Index.html"><img src="Images/Magazine/2009/Nov2009/Menu/Nov2009_Menu_Bottom.gif" height="45" width="200" border="0" alt="Please Upgrade Browser"></a>
</div>
<div id="div3">
This site is currently being built by<br>
MG Computers And Electronics: 08000 304 764<br>
<br>
A copy of the paper based magazine can be downloaded from here
<a href="Downloads/Magazine/2009/November_2009.pdf">November_2009</a><br><br>
<font size="2" face="verdana" color="red">
Please note, the site is expected to be fully working by the 1st of November 2009<br><br>
We estimate 10,000 viewers per month, starting from the first week of November 2009<br><br>
Should you wish to be one of the first to advertise on our site, please contact us<br>
Webmaster.SM1Local@MGComputersAndElectronics.co.uk
</font>
</div>
<div id="div4">
<a href="Webmaster.html"><img src="Images/Adverts/Static_Adverts/Defaults/Placed_Advert_banner.jpg" height="100" width="200" border="0" alt="Please Upgrade Browser"></a>
</div>
<div id="div5">
<a href="Webmaster.html"><img src="Images/Adverts/Static_Adverts/Defaults/Placed_Advert_banner.jpg" height="100" width="200" border="0" alt="Please Upgrade Browser"></a>
</div>
<div id="div6">
<a href="Webmaster.html"><img src="Images/Adverts/Static_Adverts/Defaults/Place_Advert_banner.jpg" height="100" width="200" border="0" alt="Please Upgrade Browser"></a>
</div>
<div id="div7">
<a href="Webmaster.html"><img src="Images/Adverts/Static_Adverts/Defaults/Place_Advert_banner.jpg" height="100" width="200" border="0" alt="Please Upgrade Browser"></a>
</div>
<div id="div8">
<a href="Webmaster.html"><img src="Images/Adverts/Static_Adverts/Defaults/Place_Advert_banner.jpg" height="100" width="200" border="0" alt="Please Upgrade Browser"></a>
</div>
<div id="div9">
<a href="Webmaster.html"><img src="Images/Adverts/Static_Adverts/Defaults/Place_Advert_banner.jpg" height="100" width="200" border="0" alt="Please Upgrade Browser"></a>
</div>
<div id="div10">
<a href="http://www.RebeccasKitchen.co.uk" target="_blank"><img src="Images/Adverts/Static_Adverts/Rebeccas_Kitchen/Rebeccas_Kitchen_Banner.jpg" height="100" width="1000" border="0" alt="Please Upgrade Browser"></a>
</div>
</div>
</body>
</html>
The page has external CSS file:
Body {
Color: #000000;
Font-Family: Verdana;
Background-Color: #FFF68F;
margin: 0px;
}
A:Link {
Color: #FFD600;
Font-Family: Verdana;
Text-Decoration: none;
}
A:Hover {
Color: #FFD600;
Font-Family: Verdana;
Text-Decoration: none;
}
A:Active {
Color: #FFD600;
Font-Family: Verdana;
Text-Decoration: none;
}
A:Visited {
Color: #FFD600;
Font-Family: Verdana;
Text-Decoration: none;
}
#Div0 {
Position: Absolute;
left: 10%;
}
#Div1 {
Position: absolute;
Top: 5px;
Left: 5px;
Width: 1000px;
Height: 100px;
Color: #000000;
Font-Family: Verdana;
Background-Color: #FFFFFF;
margin: 0px;
}
#Div2 {
Position: Absolute;
Top: 110px;
Left: 5px;
Width: 200px;
Height: 625px;
Color: #000000;
Font-Family: Verdana;
Background-Color: #FFF68F;
margin: 0px;
}
#Div3 {
Position: Absolute;
Top: 110px;
Left: 210px;
Width: 590px;
Height: 625px;
Color: #000000;
Font-Family: Verdana;
Background-Color: #FFFFFF;
margin: 0px;
}
#Div4 {
Position: Absolute;
Top: 110px;
Left: 805px;
Width: 200px;
Height: 100px;
Color: #000000;
Font-Family: Verdana;
Background-Color: #FFFFFF;
margin: 0px;
}
#Div5 {
Position: absolute;
Top: 215px;
Left: 805px;
Width: 200px;
Height: 100px;
Color: #000000;
Font-Family: Verdana;
Background-Color: #FFFFFF;
margin: 0px;
}
#Div6 {
Position: absolute;
Top: 320px;
Left: 805px;
Width: 200px;
Height: 100px;
Color: #000000;
Font-Family: Verdana;
Background-Color: #FFFFFF;
margin: 0px;
}
#Div7 {
Position: absolute;
Top: 425px;
Left: 805px;
Width: 200px;
Height: 100px;
Color: #000000;
Font-Family: Verdana;
Background-Color: #FFFFFF;
margin: 0px;
}
#Div8 {
Position: absolute;
Top: 530px;
Left: 805px;
Width: 200px;
Height: 100px;
Color: #000000;
Font-Family: Verdana;
Background-Color: #FFFFFF;
margin: 0px;
}
#Div9 {
Position: absolute;
Top: 635px;
Left: 805px;
Width: 200px;
Height: 100px;
Color: #000000;
Font-Family: Verdana;
Background-Color: #FFFFFF;
margin: 0px;
}
#Div10 {
Position: absolute;
Top: 740px;
Left: 5px;
Width: 1000px;
Height: 100px;
Color: #000000;
Font-Family: Verdana;
Background-Color: #FFFFFF;
margin: 0px;
}
This all works fine untill I add the doctype that you can see above in the HTML section, at this point the css positioning does not apply anymore and the page looks a mess as you can see on http://SM1Local.co.uk
I have validated both pages and they are both 100% correct,
I really don't know what to do please help!:(
PS: The issue is the same in 5 browsers, IE, FF, Opera, Chrome, Safari