top menu relative position with IE

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"
Post Reply
norbertpayne
New Member
New Member
Posts: 3
Joined: Sat May 09, 2009 9:48 pm

top menu relative position with IE

Post by norbertpayne »

Hi,

I'm running CMS MS version 1.5.4

Using the default template CSSMenuTop + 2 columns
and modified stylesheets CSSMenuTop + 2 columns and CSSMenu Horizontal
have made this site: http://conamara.org

Menu positions and scales correctly with Mozilla at various screen resolution.
But with IE, the menu position seems to be absolute, in relation to the top left, so doesnt work much outside a 1024 screen width.

Any suggestions?
It may have something to do with this section of the default top menu + two column stylesheet:

Code: Select all

/*****************
basic layout 
*****************/
body {
   background-color: #ffffff;
   color: #333;
   margin:1em;    /* gives some air for the pagewrapper */
}

/* center wrapper, min max width */
div#pagewrapper {
   border: 1px solid black;
   margin: 0em auto;    /* this centers wrapper */
   max-width: 54em;   /* IE wont understand these, so we will use javascript magick */
   min-width: 40em;
   background-color: #ffffff;
   color: black;
   
But where is the "javascript magick" that does this in IE?
User avatar
seensite
Forum Members
Forum Members
Posts: 173
Joined: Sun Feb 10, 2008 7:36 pm

Re: top menu relative position with IE

Post by seensite »

norbertpayne wrote: But where is the "javascript magick" that does this in IE?
Hi,

The javascript magick that does this for IE is in the header template:

{* the literal below and the /literal at the end are needed whenever there are {"curly brackets"} as smarty will think it's something to process and will throw an error *}
{literal}

=b){nw=b+"px";}if(w

   
   
    #pagewrapper {width:expression(P7_MinMaxW(720,950));}
    #container {height: 1%;}
   
   
    {/literal}
{* The min and max page width for Internet Explorer is set here. For other browsers it's in the stylesheet "Layout: Top menu + 2 columns" *}

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

Note the bolded quoted line here above _î If you change the min/max with in the template for IE as you did in your css it should word.
The universe of information technology is constantly growing and contains only emerging products built on successive patches
norbertpayne
New Member
New Member
Posts: 3
Joined: Sat May 09, 2009 9:48 pm

Re: top menu relative position with IE

Post by norbertpayne »

Thanks! will give that a try...
Post Reply

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