My site doesn't work in IE but looks fine in FF...help?

Status
Not open for further replies.

subetarealms

New Member
Messages
9
Reaction score
0
Points
0
you can find the site Here
I'm guessing it's the layout code... i'm never good in codes anyway...
can someone please help me out???

Please?
 

VPmase

New Member
Messages
914
Reaction score
0
Points
0
You should always use Http://validator.w3.org if you want your site to work with all browsers.

Also, I took a look at your source and the first thing I saw was
HTML:
<style type="text/css>
You are missing a " after css so it should look like
HTML:
<style type="text/css">

And you need to add at doctype to your pages.
http://www.w3schools.com/Xhtml/xhtml_dtd.asp
 
Last edited:

marshian

New Member
Messages
526
Reaction score
9
Points
0
Yes, that's a really good suggestion from VPmase, and you've found one of the errors too :s

Let's continue the list:
  • The
    Code:
    type="text/css
    VPmase already mentionned.
  • A style element HAS to be inside the head.
  • A link element has to be inside the head too.
  • You're only allowed to use 1 body tag in a page.
  • You're not allowed to invent attributes. (Such as: rightmargin or bottommargin)
  • If you want your site to look exactly the way you want it in all browsers, stop using tables.
  • Stick to one HTML standard. (You're using the XHTML self-closing tag <link />, but also a LOT of attributes that are part of the HTML 4.01 standard, but not XHTML, use css for those.)

That's about it as far as I am concerned. (Beleive me, w3c will come up with a lot more.)

The most important mistake you made was to use 2 body tags:
Code:
<body topmargin="0" leftmargin="0" rightmargin="0" bottommargin="0" marginheight="0" marginwidth="0">
<body bgcolor="pink">
When IE tried to make something of this, he saw the first body tag, then saw a second body tag (but body cannot appear inside a body, so the first body tag was closed without any content in it.) After that IE noticed you're only allowed to have one body tag, so he just didn't do anything with the second body tag, which has all your content. That's why there's nothing to see on IE.

- Marshian
 

subetarealms

New Member
Messages
9
Reaction score
0
Points
0
thank you ^_^
it works fine now :D

Please lock this thread
(cause I don't know how to.. sorry)

:lockd:
 
Status
Not open for further replies.
Top