Web Design Forum  

Go Back   Web Design Forum > Web and Graphic Design > Web Design

Like Tree1Likes
  • 1 Post By Phreaddee

Reply
 
LinkBack Thread Tools Display Modes
Old 12-05-2011, 05:29 AM   #1
New Member
 
Join Date: Dec 2011
Posts: 15
Default Content not centering in Internet Explorer

Hi everyone.. first post.

I'd like to know what's wrong with my code in IE. The wrapper div isn't centering as it's supposed to. My website is www.howtowritearesume.site88.net (don't be hard on me.. it's for a school project and my first website). As you can see, everything works perfectly fine in all browsers except IE; could you please verify the source code and let me know what I'm doing wrong? Oh and there's a gap between the navigation menu and text, as well as a strange border around the menu icons.

Thanks a lot
Alex is offline   Reply With Quote
Old 12-05-2011, 05:32 AM   #2
New Member
 
Join Date: Dec 2011
Posts: 15
Default

By the way, I've already tried

margin:0 auto
margin:0 auto 0
margin-left: (some number of pixels)
and many other combinations
Alex is offline   Reply With Quote
Old 12-05-2011, 06:01 AM   #3
Diamond Member
 
Phreaddee's Avatar
 
Join Date: Feb 2011
Location: Newcastle, Australia
Posts: 1,818
Default

a doctype for a start will help.

also IE wont support html5 elements such as "header"

which version are you referring to as well. please be specific.
Phreaddee is online now   Reply With Quote
Old 12-05-2011, 06:24 AM   #4
New Member
 
Join Date: Dec 2011
Posts: 15
Default

Funny.. I was reading someone else's post and you wrote the same thing. Turned out the only error was the DOCTYPE. Amazing.. thanks so much.

Would you mind tell me why the wrapper div still doesn't apply to the entire page though? As you may be able to see, the shadowing is slightly off because of that.

Thanks again
Alex is offline   Reply With Quote
Old 12-05-2011, 06:48 AM   #5
Diamond Member
 
Phreaddee's Avatar
 
Join Date: Feb 2011
Location: Newcastle, Australia
Posts: 1,818
Default

Without looking at the code, its either the div doesnt fully wrap, or you havent cleared your floats.
Try adding overflow:hidden to the wrapper.
Phreaddee is online now   Reply With Quote
Old 12-05-2011, 09:35 PM   #6
New Member
 
Join Date: Dec 2011
Posts: 15
Default

Wow.. thanks a lot again. And finally, what about the gap I currently have between the banner and content?
Alex is offline   Reply With Quote
Old 12-06-2011, 01:52 AM   #7
Diamond Member
 
Phreaddee's Avatar
 
Join Date: Feb 2011
Location: Newcastle, Australia
Posts: 1,818
Default

give your header style a height value that is the same as your header image.
(159px)
that should bring down the gap.
you might want to set margin and padding to 0 as well, although it really shouldnt need it.
Phreaddee is online now   Reply With Quote
Old 12-06-2011, 02:21 AM   #8
New Member
 
Join Date: Dec 2011
Posts: 15
Default

Thanks a lot once again. I'll be annoying you and others with some PHP questions later this week
Alex is offline   Reply With Quote
Old 12-06-2011, 04:38 PM   #9
Diamond Member
 
PixelPusher's Avatar
 
Join Date: Oct 2008
Location: Arizona, USA
Posts: 1,092
Default

Quote:
Originally Posted by Phreaddee View Post
a doctype for a start will help.

also IE wont support html5 elements such as "header"

which version are you referring to as well. please be specific.
Unless you include some JS...like the html5shiv

HTML Code:
...
<!--[if lt IE 9]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
</head>
...
__________________
John Darling
Graphic / Web Designer / Front-end Developer
SmarterTools Inc.
(877) 357-6278
www.smartertools.com
jsdarling.com
PixelPusher is offline   Reply With Quote
Old 12-06-2011, 08:33 PM   #10
Diamond Member
 
Phreaddee's Avatar
 
Join Date: Feb 2011
Location: Newcastle, Australia
Posts: 1,818
Default

I knew that pixel!
Just didnt want to fill his head any further...
PixelPusher likes this.
Phreaddee is online now   Reply With Quote
Reply

Thread Tools
Display Modes

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



All times are GMT. The time now is 03:22 AM.


Camera Forum - Computer Forum - Web Design Forum

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
Content Relevant URLs by vBSEO 3.6.0 ©2011, Crawlability, Inc.