?
Solved

CSS Help with IE6 block display problem

Posted on 2007-03-26
6
Medium Priority
?
379 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
3 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

Upgrade your Question Security!

Add Premium security features to your question to ensure its privacy or anonymity. Learn more about your ability to control Question Security today.

Question has a verified solution.

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

Color can increase conversions, create feelings of warmth or even incite people to get behind a cause. If you want your website to really impact site visitors, then it is vital to consider the impact color has on them.
There’s a good reason for why it’s called a homepage – it closely resembles that of a physical house and the only real difference is that it’s online. Your website’s homepage is where people come to visit you. It’s the family room of your website wh…
In this tutorial viewers will learn how to style different bullet points for unordered lists in CSS. Begin with a normal unordered list; the default bullet point is a solid circle: In the CSS, create a defined class of unordered list by typing "ul.S…
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…
Suggested Courses

850 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