HTML - Ie6 Woes
Similar TutorialsI am trying my best to get compliant with w3c as i can but when i use these dtd i get major issues. PHP Code: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/strict.dtd"> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01"> with internet explorer; if i use any of those dtds then css styles like the y-overflow:; dont work and also a table border color changes slightly. even with firefox; the table border color changes slightly i guess i was wondering if there was a list or a chart of which css style is not allowed or not functional in each of the major browsers since im new to dtd compliance, i think this would be a very useful tool for me and other newbies as well G'day, I've got a three column page including a header and footer too. When I place an image in my header div, my left nav gets pushed into my content DIV. Any idea what I should be doing? Here is the code: Code: <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <title>Impel Personal Training | Mobile Personal Fitness</title> <style type="text/css"> body { margin:0; padding:0; text-align: center; background-color:#fff; color:#000; font-family: Arial, sans-serif; font-size: 10pt; } #container { /*width: 100%;*/ /*margin: 0;*/ background-color: #fff; color: #333; border: 1px solid gray;/*grey;*/ text-align: left; /*line-height: 130%;*/ } #top { padding: 0; height: 100px; background-color: #2F2E7E; color:#000; border-bottom: 1px solid gray; } #top h1 { padding: 0; margin: 0; font-family: Georgia,serif; font-size: 130%; } #leftnav { float: left; width: 160px; margin: 0; padding:10px;/* 1em;*/ } #rightnav { float: right; width: 160px; margin: 0; padding:10px;/* 1em;*/ } #content { margin-left: 180px;/*165px;*/ border-left: 1px solid gray; margin-right:180px; /*165px;*/ border-right: 1px solid gray; padding:10px;/* 1em;*/ text-align:justify; background: url(fadelogo.gif); background-repeat: no-repeat; } #footer { clear: both; margin: 0; padding: .5em; color: gray; background-color: #fff; border-top: 1px solid gray;/*grey;*/ font-family: Verdana, Arial, sans-serif; font-size: 75%; text-align: center; } #footer span { margin:0 20px; } #leftnav p, #rightnav p { margin: 0 0 1em 0; } #rightnav p { margin: 0 0 1em 0; font-family: verdana, arial, sans-serif; font-size: 75%; } #content h2 { margin: 0 0 .5em 0; font-family: Century Gothic, Tahoma; font-weight: normal; color: #8DBA2C; } .smallgrn { font-family: Verdana, Arial, Sans-serif; font-size: 100%; color: #8DBA2C; } .smallnrm { font-family: Verdana, Arial, Sans-serif; font-size: 100%; } #logo { float: left; } #picright { float: right; } /*#content { max-width: 36em; }*/ </style> </head> <body> <div id="container"> <div id="top"> <h1>Welcome</h1> </div> <div id="leftnav"> <p> Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut. </p> </div> <div id="rightnav"> <p>Brendon Osborne<br /> <span class="smallgrn">Accredited Personal Trainer</span> Ph: 0405 602 979 <span class="smallnrm">bosborne@hotmail.com</span> </p> <p>Dean Morrissey<br /> <span class="smallgrn">Accredited Personal Trainer</span> Ph: 0406 094 261 <span class="smallnrm">deanmorrissey@hotmail.com</span></p> </div> <div id="content"> <h2>Subheading</h2> <p> Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi. </p> <p> Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi. Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. </p> <p> Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi. </p> <p> Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi. Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. </p> </div> <div id="footer"> Copyright © 2006 IMPEL Personal Training<span>|</span>ABN: 99 999 999 999<span>|</span>Site Design by Jamie Press </div> </div> </body> </html> Cheers guys, I've got no idea what I should be doing. Jamie I got a prob: the site i'm designing looks great in IE, but in Firefox, all the tables collapse and it looks crap. i've taken care to sort the opacity of my transparent divs with the "-moz-opacity" tag, but is there a tag that does the same for tables? check it out he http://www.creativetruth.co.za/divercity/index.html Hi guys, This is the first time I have jumped on here so i'm not sure how it all works, anyway I have a bit of a problem and if anyone could lend a helping hand that would be fantastic. Basically, the code - <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" doesn't validate when I use the W3C markup validation service. I have tried to edit it and also add it to the .css file but it still won't work! Also, there is an issue with the "Height" and "Background" attributes, but I have no idea what the issue is?? I am terribly confused. I have also been instructed not to use javascript, but the template has javascript in it, I was wondering if there is anyway to get rid of the java so that the tables will still line up properly. Here is the file, if anyone can help I would really really appreciate it! Thanks. Here is the file |