Reply
Pleaes help me figure out why IE is being an a-hole for my site. (Centering issue)
Old 11-01-2009, 06:58 PM Pleaes help me figure out why IE is being an a-hole for my site. (Centering issue)
Experienced Talker

Posts: 31
Name: Patric
Trades: 0
Hi,

So, on my wordpress site, I would like to add a shadow background image, which I've done and works wonderfully in mozilla and chrome.

http://www.betasab.host56.com


IE however does not support this behavior where it aligns the site to the left for some reason and it's driving me crazy. For some reason, my "wrapper" I've added is above the doctype in my source code.



I am not sure what the issue is, all I've done, is added a div and id called "wrapper", margins - auto for left and right in my index.php file.


Does any kind soul here have any ideas what could be the issue or how I might be able to resolve it??


Many thanks in advance.
Reckoner is online now
Reply With Quote
View Public Profile
 
 
When You Register, These Ads Go Away!
Old 11-01-2009, 08:00 PM Re: Pleaes help me figure out why IE is being an a-hole for my site. (Centering issue
chrishirst's Avatar
Super Moderator

Posts: 22,281
Location: Blackpool. UK
Trades: 0
the div that is before the doctype is the problem
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
Growing old is mandatory - Growing up is optional
Code Samples | People Counting System | Bits & Bobs
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 11-02-2009, 11:18 AM Re: Pleaes help me figure out why IE is being an a-hole for my site. (Centering issue
Experienced Talker

Posts: 31
Name: Patric
Trades: 0
Hi Chris,

Thanks again for the reply and moving my thread, but I've figured it out!

I placed the "wrapper" div outside the header div, and again in the content section. I think just didn't close the div so that it encompasses the entire height of the page.
Reckoner is online now
Reply With Quote
View Public Profile
 
Old 11-02-2009, 11:34 AM Re: Pleaes help me figure out why IE is being an a-hole for my site. (Centering issue
chrishirst's Avatar
Super Moderator

Posts: 22,281
Location: Blackpool. UK
Trades: 0
Yep. The "wrapper" was being opened before the DTD and anything that is rendered before the DTD will "break" IE (not that it needs any help of course)
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
Growing old is mandatory - Growing up is optional
Code Samples | People Counting System | Bits & Bobs
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Reply     « Reply to Pleaes help me figure out why IE is being an a-hole for my site. (Centering issue)
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 



Page generated in 0.12310 seconds with 13 queries