centering my content in IE (yet another problem)

This is a discussion on "centering my content in IE (yet another problem)" within the Web Page Design section. This forum, and the thread "centering my content in IE (yet another problem) are both part of the Design Your Website category.


 Subscribe in a reader

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

Notices




Reply
 
LinkBack Thread Tools
  #1  
Old Sep 26th, 2007, 20:00
Up'n'Coming Member
Join Date: Sep 2007
Location: Wiltshire, UK
Age: 19
Posts: 82
Thanks: 0
Thanked 0 Times in 0 Posts
centering my content in IE (yet another problem)

ok. heres my problem...

i made this website ... HERE ... and the css i used centers the content in all the browsers i've looked at it in.

now i'm trying another one. i used IDENTICAL code so far as i can see but IE cocks it up, take a look. here is the css.

why on earth can IE make the first layout work but not this one!?!?!

have i missed something really obvious, is it one of those silly mistakes that you never spot yourself?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

  #2  
Old Sep 26th, 2007, 20:13
Highly Reputable Member
Join Date: Jul 2006
Location: Devon, England
Posts: 565
Thanks: 0
Thanked 0 Times in 0 Posts
Re: centering my content in IE (yet another problem)

Put this in the body section of the css....works for me

Code: Select all
 
text-align: center;
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old Sep 26th, 2007, 20:18
Up'n'Coming Member
Join Date: Sep 2007
Location: Wiltshire, UK
Age: 19
Posts: 82
Thanks: 0
Thanked 0 Times in 0 Posts
Re: centering my content in IE (yet another problem)

hmmm, well that does work. however i didnt have to do that with the first site i mentioned. i cant understand why that one works but this one doesn't.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old Sep 26th, 2007, 20:21
Highly Reputable Member
Join Date: Jul 2006
Location: Devon, England
Posts: 565
Thanks: 0
Thanked 0 Times in 0 Posts
Re: centering my content in IE (yet another problem)

That's just IE i suppose...but at least it works.

Is it the same versions of IE not IE6 and IE7?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5  
Old Sep 26th, 2007, 20:28
Up'n'Coming Member
Join Date: Sep 2007
Location: Wiltshire, UK
Age: 19
Posts: 82
Thanks: 0
Thanked 0 Times in 0 Posts
Re: centering my content in IE (yet another problem)

lol, no, both in IE7, in different tabs!! i really cant understand how they get away with bundling such a poor excuse for a browser with their OS!! every other browser can manage to show stuff properly!! lol
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6  
Old Sep 26th, 2007, 21:52
Elite Veteran
Join Date: Jan 2007
Location: You know where
Age: 31
Posts: 4,617
Thanks: 0
Thanked 0 Times in 0 Posts
Re: centering my content in IE (yet another problem)

Having the margin: 0 auto; in the html as well as body is throwing it off.

Instead just have
HTML: Select all
html, body {
        margin: 0;
        padding: 0;
    }
    
    body {
        width:700px;
        margin: 0 auto;
        background-image:url(img2.gif);
        color:#e4e5b8;
    }
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #7  
Old Sep 26th, 2007, 23:12
Up'n'Coming Member
Join Date: Sep 2007
Location: Wiltshire, UK
Age: 19
Posts: 82
Thanks: 0
Thanked 0 Times in 0 Posts
Re: centering my content in IE (yet another problem)

lol. now your comment makes perfect sense. however IE clearly doesnt think so!!

i'm so confused!!

thanks for your help

addition:
i've copied the actual file that worked (before i'd only copied the entire code from one file to the other) and it seems to work fine!! well i guess this mystery IE has thrown at us will never truely be solved!! lol. once again thanks for all your help.

Last edited by bengtec; Sep 26th, 2007 at 23:19. Reason: addition ...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #8  
Old Sep 26th, 2007, 23:24
Elite Veteran
Join Date: Jan 2007
Location: You know where
Age: 31
Posts: 4,617
Thanks: 0
Thanked 0 Times in 0 Posts
Re: centering my content in IE (yet another problem)

Both links don't work in IE7
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

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
100% height on content problem jasonmillward Web Page Design 1 Apr 9th, 2008 14:08
Rewriterule Dupe content problem alexgeek Search Engine Optimization (SEO) 11 Oct 22nd, 2007 16:48
centering content div in firefox Roland Web Page Design 7 Jun 28th, 2007 20:48
Center content problem Aaron1988 Web Page Design 1 Mar 20th, 2007 20:03
IE active content flash validation problem edd_jedi Flash & Multimedia Forum 5 Jul 20th, 2006 23:01


All times are GMT. The time now is 06:23.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization 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