?
Solved

CSS Help with IE6 block display problem

Posted on 2007-03-26
6
Medium Priority
?
352 Views
Last Modified: 2013-11-19
CSS block problem in Joomla template. My div column block keeps going underneath my main content in IE6. It displays fine in FF and IE7.

Basically I want to include a flash menu to the left and content to the right.I can't get my text to wrap around a div block. Look at: http://www.bestcompanies.ie/index.php?option=com_content&task=view&id=114&Itemid=80 in IE6 for example.

The section in my template shows:

 <div id="wrapper">
            <div id="content"><?php mosMainBody(); ?></div>
 </div>
       
 <div id="navigation">
      <img src="http://www.bestcompanies.ie/templates/gptw-flash/images/betsy.gif" width="220" height="228" align="left" />
</div>

My CSS code includes:
div#wrapper{
      float:right;
      width:100%;
      height:auto;
      margin-left:-200px;
}

div#content{
      margin-left:200px;
      padding:0px 15px 0px 15px;
      text-align:justify;
      float:left;
}

div#content p{
      line-height:1.4;
}

div#navigation{
      float:left;
      width:200px;
      vertical-align:top;
}


Many thanks in advance
0
Comment
Question by:otooles
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 18

Accepted Solution

by:
Eternal_Student earned 1000 total points
ID: 18793210
Its possibly a width issue. Check all of your width settings + padding + margin and make sure it all adds up in IE. Remember IE handles the box model differently than Mozilla.

This could also be the IE float bug. That is where IE doubles the margin on any element that is floated. So if you float something and give it a margin 8px IE will render that as margin 16px. Double margin bug can be fixed by adding this to the element that is floated:

display:inline;
0
 

Author Comment

by:otooles
ID: 18793407
If I decrease the width of my menu it fits in. However I want my column menu to flyout over the conent on mouse over so my flash file needs to be wider.

So my menu will overlap as below. Small menu box to the left with larger content box to the right.

--------------------
|----/---|----------/  |
|     /    |              /  |
|     /    |              /  |
|----/---|             /  |
|     /--------------/  |
-----------------------
     
--------------------
0
 
LVL 3

Assisted Solution

by:dtocci
dtocci earned 1000 total points
ID: 18805736
By the looks of your layout, you could use absolute positioning on your menu and content divs to solve your cross-browser problems.  They appear to always be the same distance from the top of the page.  If this were my layout, and I understand you correctly, I would actually place both at 0 on the left, but with the menu on top of the content. You can then set the left padding on the content to make room for the menu.  You can even set the content div to contain the background image, which would help fix the issue with the content spilling over the bottom as it does currently.  The menu would also be positioned at 0 left, but with no left margin and a higher z-index.  Of course, this would not allow content to *wrap* under the menu, but it doesn't appear to do that now anyway even in firefox.
0

Featured Post

WordPress Tutorial 2: Terminology

An important part of learning any new piece of software is understanding the terminology it uses. Thankfully WordPress uses fairly simple names for everything that make it easy to start using the software.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

An enjoyable and seamless user experience can go a long way on an eCommerce site. While a cohesive layout and engaging copy play roles in creating a positive user experience, some sites neglect aspects that seem marginal but in actuality prove very …
Developer portfolios can be a bit of an enigma—how do you present yourself to employers without burying them in lines of code?  A modern portfolio is more than just work samples, it’s also a statement of how you work.
This tutorial demonstrates how to identify and create boundary or building outlines in Google Maps. In this example, I outline the boundaries of an enclosed skatepark within a community park.  Login to your Google Account, then  Google for "Google M…
This tutorial walks through the best practices in adding a local business to Google Maps including how to properly search for duplicates, marker placement, and inputing business details. Login to your Google Account, then search for "Google Mapmaker…
Suggested Courses

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question