1.

Solve : HTML Troubles With IE?

Answer»

In Firefox it looks great, however with IE being more strict and being new to HTML I am having troubles with my code.

FIREFOX



Internet Explorer


"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">


www.w3.org" />




Central Public School



body {
background-color: black;
}
p.c1 {text-align: center}








var d=new Date()

var weekday=new
Array("SUNDAY","MONDAY","Tuesday","Wednesday","Thursday","Friday","Saturday")
var monthname=new
Array("January","February","March","April","May","June","July","August","September","October","November","December")
document.write(weekday[d.getDay()] + " ")
document.write(monthname[d.getMonth()] + " ")
document.write(d.getDate() + ", " )
document.write(d.getFullYear())






















<img src="images/homenav3.gif" border="0" alt="home" />


<img src="images/aboutnav3.gif" border="0" alt="about" />


<img src="images/ourstaffnav3.gif" border="0" alt="our staff" />



<img src="images/eventsnav3.gif" border="0" alt="events" />


<img src="images/photogallerynav3.gif" border="0" alt="gallery" />


<img src="images/showcasenav3.gif" border="0" alt="showcase work" />


<img src="images/parentcouncilnav3.gif" border="0" alt="parent council" />


<img src="images/calendarnav3.gif" border="0" alt="school year calendar" />


<img src="images/linksnav3.gif" border="0" alt="external links" />








I suggest using table cells instead of


and eventually, you will want to learn css coding, which will give you much more control than SIMPLE tables will. Check out www.csszengarden.com & http://www.htmldog.com/ for examples of css.I second CSS. It gives you much more freedom. And it allows you to create different designs for the different BROWSERS, which is what you need for true (and proper) compatibility.Can someone help me with the code needed?I'm not going to do the whole thing, but here's the basic concept.

Code: [Select]<table>
<tr>
<td>
row 1 column 1
</td>
<td>
row 1 column 2
</td>
</tr>
<tr>
<td>
row 2 column 1
</td>
<td>
row 2 column 2
</td>
</tr>
</table>
Thanks...I got it to work in IE early this morning....

          <img src="images/stafftrans.gif" width="124" height="140" border="0" align="left" hspace="2" vspace="1" title="Meet the Staff" alt="Meet the Staff" /><img src="images/linkstrans.gif" width="180" height="159" border="0" align="left" hspace="2" vspace="1" title="Links" alt="Links" /><img src="images/showcasetrans.gif" width="179" height="173" border="0" align="left" hspace="2" vspace="1" title="Showcase" alt="Showcase" /><img src="images/parentcounciltrans.gif" width="127" height="158" border="0" align="left" hspace="2" vspace="1" title="Parent Council" alt="parent council" />

 



<img src="images/capturedtrans.gif" width="124" height="124" border="0" align="left" hspace="2" vspace="1" title="photogallery" alt="Photo Gallery" /><img src="images/historytrans.gif" width="124" height="121" border="0" align="left" hspace="2" vspace="1" title="Calendar" alt="School Year Calendar" /><img src="images/calendartrans.gif" width="199" height="188" border="0" align="left" hspace="2" vspace="1" title="Calendar" alt="School Year Calendar" /><img src="images/eventstrans.gif" width="160" height="175" border="0" align="left" hspace="2" vspace="1" title="Upcoming Events" alt="Upcoming Events" />


 


 


 


 


 


 


 






[/url]




Thanks for your help


Discussion

No Comment Found