Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 04-19-2011, 07:48 AM   PM User | #16
shinydarkrai94
New Coder

 
Join Date: Mar 2011
Posts: 21
Thanks: 9
Thanked 0 Times in 0 Posts
shinydarkrai94 is an unknown quantity at this point
Quirky mode seems to be working for me better :S. Here's a picture of my site when I use a doctype: http://i986.photobucket.com/albums/a...i94/error1.jpg.

I just don't understand it @_@ the article you gave me only had small differences between strict and quirky. This is a rather large difference lol.

Relevant code:

Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>

  <head>

    <link rel="stylesheet" type="text/css" href="stylesheet.css">

    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <meta name="description" content="AV Avenue is a K-12 Classroom Technology Specialists company. We provide audio/video equipment sales, systems installations and service of existing systems.">
    <meta name="keywords" content="av avenue, audio, video, audio visual, classroom, education, installation, smartboard, k-12">

    <title>AV Avenue</title>

  </head>
shinydarkrai94 is offline   Reply With Quote
Old 04-19-2011, 08:17 AM   PM User | #17
shinydarkrai94
New Coder

 
Join Date: Mar 2011
Posts: 21
Thanks: 9
Thanked 0 Times in 0 Posts
shinydarkrai94 is an unknown quantity at this point
Figured it out . Apparently, I validated my code before I put in a doctype which caused some validation errors when I put in the doctype (like <img /> instead of <img>). Also, a lot of my css was bad which was causing another large part of the problem. Thanks everyone for the links to the doctypes though, I've learned a lot .
shinydarkrai94 is offline   Reply With Quote
Old 04-19-2011, 04:44 PM   PM User | #18
Wojjie
Regular Coder

 
Join Date: Apr 2011
Posts: 286
Thanks: 2
Thanked 39 Times in 39 Posts
Wojjie is on a distinguished road
Quote:
Originally Posted by SB65 View Post
In the absence of a doctype IE will display in "quirks mode" - here's an explanation.
Thanks, I forgot the mode it defaulted to, I just remember to always use one.
Wojjie is offline   Reply With Quote
Old 04-19-2011, 08:30 PM   PM User | #19
teedoff
Senior Coder

 
Join Date: Aug 2010
Location: High Point, NC
Posts: 3,325
Thanks: 5
Thanked 363 Times in 360 Posts
teedoff is on a distinguished road
Try using the html 4.01 doctype. I validated with your code and this doctype and returned no errors in validation.

Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

Quote:
validation errors when I put in the doctype (like <img /> instead of <img>).
Yes depending on which doctype and whether its strict or transitional, tags have to be closed in certain ways. Which is why I suggested, with your current code, that you use html4.01.

You shouldnt say quirks mode works for me. lol You should ALWAYS use a valid doctype from the start.
__________________
Teed
teedoff is offline   Reply With Quote
Old 04-20-2011, 03:02 AM   PM User | #20
shinydarkrai94
New Coder

 
Join Date: Mar 2011
Posts: 21
Thanks: 9
Thanked 0 Times in 0 Posts
shinydarkrai94 is an unknown quantity at this point
Yes, everything is working now. Earlier today I validated my html and css and it fixed my IE problem. Thanks again to everyone who helped me out with this . Greatly appreciated.
shinydarkrai94 is offline   Reply With Quote
Old 04-20-2011, 07:06 AM   PM User | #21
hotelscyprus
New Coder

 
Join Date: Apr 2011
Posts: 15
Thanks: 0
Thanked 1 Time in 1 Post
hotelscyprus is an unknown quantity at this point
Shiny...also you can check your website on various browsers through browsershots.org. It will show how your website will be on several browsers. This too helps you to fix your code.
hotelscyprus is offline   Reply With Quote
Users who have thanked hotelscyprus for this post:
shinydarkrai94 (04-20-2011)
Reply

Bookmarks

Tags
bug, error, internet explorer, list, problem

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 03:11 PM.


Advertisement
Log in to turn off these ads.