[solved] IE6 problem, IE7 is oke

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Locked
Frankvanlogten

[solved] IE6 problem, IE7 is oke

Post by Frankvanlogten »

Hello,

I Use the following template for the website:










{* The above JavaScript is required for CSSMenu to work in IE *}



Motorclub M&M's Elshout - Gastenboek
{stylesheet}




     
         
         
     


     
      {bulletmenu} 
     
     
     

          {content}
     
     


      {* Start Footer. Edit the footer in the Global Content Block called "footer" *}
 
 
      {global_content name='footer'}


   
  {* End Footer  *}








And the following CSS:

.body { font-family: verdana; }



.header {
        margin:0px 0px 0px 0px;
        padding:0px;
        height:150px;
        background-color: #3a53a4;
        }


div.wrapper {
          {background:url(menu.jpg) repeat-y 0 0;overflow:auto};
        }

.menu  {
        float:left;
        margin:0px 0px 0px 0px;
        padding:0px;
        width:200px;
        }


.content{
        background-color: white;
        margin-top:10px;
        margin-left:225px;
        }



.footer {
        clear: both;
        height:50px;
        background-color: #3a53a4 ;}


This is shown in IE7 perfect but in IE6 not!!!
Menu background starts 10px below!!!
What to do to fix this?
Last edited by Frankvanlogten on Thu Nov 15, 2007 2:05 pm, edited 1 time in total.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: IE6 problem, IE7 is oke

Post by Dr.CSS »

Well just to guess I would say it's from the content margin-top:10px, your wrapper is around the content, not sure if you wanted it to just wrap the menu...

A link would work better...
Frankvanlogten

Re: IE6 problem, IE7 is oke

Post by Frankvanlogten »

Mark,

I made some screencaptures.
ie6.jpg show it in Internet Explorer 6.
You can see that the menu also start 10px from the top like the content.

ie7.jpg show it in Internet Explorer 7.
You can see here that the menu start at the top and content 10px below
Attachments
Ie7.JPG
Ie6.JPG
User avatar
lollipop27
Forum Members
Forum Members
Posts: 237
Joined: Wed Sep 12, 2007 4:09 pm

Re: IE6 problem, IE7 is oke

Post by lollipop27 »

Hi there, I have a question, why do you use two {{}} in the wrapper? Is this sort of a hack?

Code: Select all

div.wrapper {
          {background:url(menu.jpg) repeat-y 0 0;overflow:auto};
}
and why do you add the background in the wrapper and not in the menu?
Frankvanlogten

Re: IE6 problem, IE7 is oke

Post by Frankvanlogten »

Hi,

Don't know why i do this.
Just asked for a solution and someone give this as a solution.

I'm going to change background to set in menu and hopefull is this the solution for mine problem.
Done this, but then the background won't fill complete the "content" height.
Background just stops below the last link in menu, while menu height is higher.

Just changed this back, without the extra {}.
Last edited by Frankvanlogten on Tue Nov 13, 2007 10:41 am, edited 1 time in total.
streever

Re: IE6 problem, IE7 is oke

Post by streever »

hey,

yes, it's that 10px margin you have on the menu.

Change that to PADDING.

Also:
make sure you understand this--the css box model--it sounds weird but it's so simple, okay?

Margin DOES NOT carry the color
Padding does

Image
Frankvanlogten

Re: IE6 problem, IE7 is oke

Post by Frankvanlogten »

Oké.

I changed it to padding and now it's oké.
Thanks.
streever

Re: IE6 problem, IE7 is oke

Post by streever »

Great :D!!

I'm very happy to have helped you!
Locked

Return to “Layout and Design (CSS & HTML)”