Old 11-02-2008, 21:39   #1 (permalink)
rbastien
Registered User
 
Join Date: Oct 2006
Posts: 62
IE improper DIV alignment

Hey, I'm working on my new portfolio site and the div for the sidebar is displayed at the bottom of the page in IE, yet is fine in Firefox. I tried playing around with floats, margins, and padding but had no success. Any suggestions?

Here's the link:
Ocular Harmony

Here's the code:
Code:
#page { width: 800px; margin: 0 auto; background: #dbceb8 url("images/margin_bg.jpg") repeat-x; } #sidebar { width: 136px; height: 400px; margin-right: 40%; background: url("images/sidebar.jpg") top; text-align:center; }

Code:
<?php get_header(); ?> <div id="wrapper">
<div id="content"> All my content</div> <?php get_sidebar(); ?>
</div> <?php get_footer(); ?>
  Reply With Quote
Old 11-02-2008, 22:11   #2 (permalink)
illvibe
say werd.
 
illvibe's Avatar
 
Join Date: Oct 2004
Location: Japan
Posts: 1,274
If there's a fixed width on #page (800px), why are you using a percentage for your margin?
  Reply With Quote
Old 11-02-2008, 22:33   #3 (permalink)
Shiro
shiro
 
Shiro's Avatar
 
Join Date: Aug 2007
Location: Yokohama, Japan
Posts: 2,605
I clicked your link and all I saw was a message telling me "Sorry, but you are looking for something that isn't here."
  Reply With Quote
Old 03-03-2008, 22:17   #4 (permalink)
rbastien
Registered User
 
Join Date: Oct 2006
Posts: 62
Quote:
Originally Posted by illvibe
If there's a fixed width on #page (800px), why are you using a percentage for your margin?

I've tried different variations of floats and margins in percentages and fixed, but It doesn't seem to want to move up
  Reply With Quote
Old 03-03-2008, 22:41   #5 (permalink)
rbastien
Registered User
 
Join Date: Oct 2006
Posts: 62
Fixed!

The width of the content DIV was 2px too wide
  Reply With Quote
Old 03-03-2008, 22:56   #6 (permalink)
pgo
Senior Member
 
Join Date: Jan 2005
Posts: 12,340
Always check your math because that's what causes that. Every time.
  Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search


Contact Us - Web Design Forums - Archive - Top
Search Engine Optimization by vBSEO 3.0.0 RC8