IE issue

This is a discussion on "IE issue" within the Web Page Design section. This forum, and the thread "IE issue are both part of the Design Your Website category.



Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Dec 2nd, 2005, 07:18
Reputable Member
Join Date: Sep 2005
Location: Canada, BC
Age: 24
Posts: 239
Thanks: 0
Thanked 0 Times in 0 Posts
IE issue

I have done it before so I don't know why this isn't working by i'm trying to center the content useing margin: auto; works fine in Firefox but IE isn't cooperating. Strange thing is I am useing this almost exact same code on another website and it works fine...

I'm sure its something simple, maybe you can spot it?

There was some css for the anchors but as that code wasn't important I removed it for length.

*does some extra testing* aparently removeing the "<?xml version="1.0" encoding="UTF-8"?>" makes IE display it properly, anyone know why this happens?
HTML: Select all
<?xml version="1.0" encoding="UTF-8"?>
 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
 
 <html xmlns="http://www.w3.org/1999/xhtml">
 <head>
 <title></title>
 <style type="text/css">
 <!-- 
 .* { margin: 0px; padding: 0px; }
 div#body { margin: auto; width: 760px; }
 div#header { background-image: url(head_01.jpg); width: 760px; height: 227px; }
 div#links a { display: block; float: left; }
 -->
 </style>
 </head>
 <body>
 <div id="body">
 <div id="header"></div>
 <div id="links">
<a id="home" href="#"></a><a id="chat" href="#"></a><a id="forum" href="#"></a><a id="manual" href="#"></a><a id="about" href="#"></a><a id="rule" href="#"></a><a id="term" href="#"></a>
 </div>
 <div>Content...</div>
 </div>
 </body>
 </html>
Reply With Quote

  #2 (permalink)  
Old Dec 2nd, 2005, 16:25
herkalees's Avatar
Highly Reputable Member
Join Date: Jul 2005
Location: Massachusetts, USA
Age: 87
Posts: 576
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to herkalees Send a message via MSN to herkalees Send a message via Yahoo to herkalees
Re: IE issue

Your added solution is familiar, I've run into bugs with IE when I've had that in there too. I've never included it since, it's safe to leave it out.

As for "why" it bones things up, I'm not sure.
Reply With Quote
  #3 (permalink)  
Old Dec 2nd, 2005, 21:58
Reputable Member
Join Date: Sep 2005
Location: Canada, BC
Age: 24
Posts: 239
Thanks: 0
Thanked 0 Times in 0 Posts
Re: IE issue

Well without it I fail validation because i'm not declareing my encodeing type which I guess could be done with a meta tag, or threw php
Reply With Quote
Reply

Tags
issue

Thread Tools

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
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
JS issue acrikey JavaScript Forum 6 Jul 25th, 2007 17:45
Issue in IE6 aholmes Web Page Design 7 Jul 13th, 2007 10:00
CSS issue in IE7 bluetech Web Page Design 6 Jul 3rd, 2007 15:36
css issue acrikey Web Page Design 4 May 24th, 2007 16:01
Help Odd Issue? drappendix Web Page Design 8 Aug 9th, 2006 17:53


All times are GMT. The time now is 02:57.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43