• Gear
  • Shots
  • Photo Craft
  • Video
  • Wide Angle
  • Support
  • New Stuff
  • More
Support SmugMug Customization Menu's are messed up in IE8

FAQtoid

Ever wanted to create an Avatar? Creating an Avatar!

Searching Dgrin with Google Searching with Google

Dgrin Challenges

Congratulations to the Winner of DSS #128 (Sunrise or Sunset), ShootingStar.

The next Dgrin Challenge DSS #129 (Silhouette Revisited ) is open for entries through May 27th, 2013 at 8:00pm PDT.

As always, we look forward to your participation but please do take a moment to read through the rules before posting your entry.

Past DSS Challenge Winners, DSS Challenge Rules, and other important DSS Challenge information is here.

Need some help with Accessories?

Tutorials

Ever find yourself wondering just how someone managed to create an image using different effects?

Here are three simple tutorials we hope will encourage you to try something new.

The Hot Seat

A lifelong interest in landscape photography has led Eyal Oren to make a study of his adopted hometown of Marblehead, MA. As you can see, his dedication is paying off!

Africa!

Dgrinners Harryb, Pathfinder, and others joined Andy Williams and Marc Muench on Safari in East Africa recently. Here are some awesome threads to check out!

 
Thread Tools Display Modes
Old Nov-27-2010, 12:33 PM
#1
slipkid is offline slipkid OP
Steve
slipkid's Avatar
Menu's are messed up in IE8
I have a page ( http://www.slipkid.com/sports ) that works well in Firefox but looks messed up in IE8.
__________________
Regards
Steve

Nikon D90, 70-200VR
www.slipkid.com
"The problem with socialism is that you eventually run out of other people's money". -- Margaret Thatcher
Old Nov-27-2010, 12:52 PM
#2
jfriend is online now jfriend
Scripting dude-volunteer
In your menus change every occurrence of:

[if IE 7]

to:

[if gte IE 7]
__________________
--John
HomepagePopular
JFriend's javascript customizationsSecrets for getting fast answers on Dgrin
Always include a link to your site when posting a question
Old Nov-27-2010, 05:36 PM
#3
slipkid is offline slipkid OP
Steve
slipkid's Avatar
almost
That cleaned up a lot of problems but still one remaining. On My drop down menus I cannot get to the drop down parts, there is a space between the drop down and the top menu.
__________________
Regards
Steve

Nikon D90, 70-200VR
www.slipkid.com
"The problem with socialism is that you eventually run out of other people's money". -- Margaret Thatcher
Old Nov-27-2010, 07:41 PM
#4
jfriend is online now jfriend
Scripting dude-volunteer
Quote:
Originally Posted by slipkid View Post
That cleaned up a lot of problems but still one remaining. On My drop down menus I cannot get to the drop down parts, there is a space between the drop down and the top menu.
Hopefully someone else like Allen will drop in to help you with that one. I don't do CSS drop-down menus.
__________________
--John
HomepagePopular
JFriend's javascript customizationsSecrets for getting fast answers on Dgrin
Always include a link to your site when posting a question
Old Nov-27-2010, 08:24 PM
#5
Allen is online now Allen
"tweak 'til it squeaks"
Allen's Avatar
Quote:
Originally Posted by slipkid View Post
That cleaned up a lot of problems but still one remaining. On My drop down menus I cannot get to the drop down parts, there is a space between the drop down and the top menu.
See if this works better.
Remove the #navcontainer2 rules
Code:
#navcontainer2
{ position: relative;
float: none;
margin: 33px auto 0; /* top/bottom right/left */
z-index: 99;
padding: 1px 1px 1px 1px; /* spacing around menu - top right bottom left */
height: 20px; /* menu container (div .menu) */
width: 730px; /* width of menu - minimize this until doesn't wrap to two lines
- too large effects centering */
}

#navcontainer2
{margin-top:30px;
height:22px;
border-bottom: 1px solid #4D5B5B; 
}

#navcontainer2 ul li {
display: inline;
}

#navcontainer2 ul li a {
text-decoration: none;
padding: .2em 1em;
color: #636363;
background-color: #fff;
font-size: 10pt;
font-weight: bold;
}

#navcontainer2 ul li a:hover {
text-decoration: none;
padding: .2em 1em;
color: #000000;
background-color: #fff;
font-size: 10pt;
font-weight: bold;
}
Change the #navcontainer2 html to this. Also changed to relative links.
Code:
<div id="navcontainer2" class="menu">
<ul>
<li><a href="/">Home</a></li>

<li><a class="drop" href="/Hockey">NK Hockey
    <!--[if gte IE 7]><!--></a><!--<![endif]--> <!--[if lte IE 6]><table><tr><td><![endif]-->
    <ul>
        <li><a href="/Hockey2008-09">2008-09 NK Hockey</a></li>
        <li><a href="/Hockey2009-10">2009-10 NK Hockey</a></li>
    </ul> <!--[if lte IE 6]></td></tr></table></a><![endif]-->
</li>

<li><a class="drop" href="/Sports">Sports
    <!--[if gte IE 7]><!--></a><!--<![endif]--> <!--[if lte IE 6]><table><tr><td><![endif]-->
    <ul>
        <li><a class="drop" href="/Sports">Hockey&nbsp;&gt;
            <!--[if gte IE 7]><!--></a><!--<![endif]--> <!--[if lte IE 6]><table><tr><td><![endif]-->
            <ul>
                <li><a href="/gallery/6435041_wuZBG">Midget 2008</a></li>
                <li><a href="/gallery/4759591_dmJjn">Spring 2008</a></li>
                <li><a href="/gallery/4571500_CDM3v">Bantam Regionals 2008</a></li>
                <li><a href="/gallery/3587409_xLoot">Bantams 2007-08</a></li>
                <li><a href="/gallery/1940956_nh3dP">Bantams 2006-07</a></li>
                <li><a href="/gallery/1793060_igKKR">Summer Hockey 2006</a></li>
                <li><a href="/gallery/3172004_B7UpD">PC Camp 2007</a></li>
                <li><a href="/gallery/1678717_gc8f4">PC Camp 2006</a></li>
                <li><a href="/gallery/946206_ZGyoR">Peewee 2005-06</a></li>
                <li><a href="/gallery/981932_2F8gm">RIJDL 2005-06</a></li>
                <li><a href="/gallery/508766_q7Bkm">RIJDL 2004-05</a></li>
            </ul> <!--[if lte IE 6]></td></tr></table></a><![endif]-->
        </li>
        <li><a class="drop" href="/Sports">Baseball&nbsp;&gt;
            <!--[if gte IE 7]><!--></a><!--<![endif]--> <!--[if lte IE 6]><table><tr><td><![endif]-->
            <ul>
                <li><a href="/gallery/8181439_bvCvE">2009 Baseball</a></li>
                <li><a href="/gallery/4939975_3UQVy">2008 Baseball</a></li>
                <li><a href="/gallery/2740895_ukiD9">2007 Baseball</a></li>
                <li><a href="/gallery/1404455_GMkkn">2006 Baseball</a></li>
                <li><a href="/gallery/497540_UnFbR">2005 Baseball</a></li>
            </ul> <!--[if lte IE 6]></td></tr></table></a><![endif]-->
        </li>
        <li><a href="/nk-Cross-Country-2010">NK Cross Country</a></li>
    </ul> <!--[if lte IE 6]></td></tr></table></a><![endif]-->
</li>

<li><a class="drop" href="/Airplanes">Air Shows
    <!--[if gte IE 7]><!--></a><!--<![endif]--> <!--[if lte IE 6]><table><tr><td><![endif]-->
    <ul>
        <li><a href="/gallery/602228_zsind">2005 Air Show</a></li>
        <li><a href="/gallery/3048094_caN7D">2007 Air Show</a></li>
        <li><a href="/gallery/8710541_R7BDs">2009 Air Show</a></li>
    </ul> <!--[if lte IE 6]></td></tr></table></a><![endif]-->
</li>

<li><a class="drop" href="/Others">Others
    <!--[if gte IE 7]><!--></a><!--<![endif]--> <!--[if lte IE 6]><table><tr><td><![endif]-->
    <ul>
        <li><a href="/gallery/725235_G2GZs">Baseball Hall of Fame</a></li>
        <li><a href="/gallery/663211_pSHqh">Flowers</a></li>
        <li><a href="/gallery/6875109_E7du6">Winter 2008-09</a></li>
        <li><a href="/Others/Winter-2009-10/10703762_QkfGy">Winter 2009-10</a></li>
        <li><a href="/Landscapes">Landscapes</a></li>
        <li><a href="/watches">Watches</a></li>
        <li><a href="/others">Other Subjects</a></li>
        <li><a href="/Portraits">Contact me</a>
    </ul> <!--[if lte IE 6]></td></tr></table></a><![endif]-->
</li>
</ul>
</div>  <!-- closes navcontainer2 menu -->
Change the menu CSS to this
Code:
/* CSS Dropdown Nav Bar */
/* Original code by Stu Nicholls of */
/* http://www.cssplay.co.uk/ */
/* Edited for content, formatting and some elements */
/* Please help support CSSPlay at: */
/* http://www.cssplay.co.uk/support.html */

/* CSS Section */

      /* style the outer div to give it width */
.menu {
   z-index:99;
   position:relative;    /* Make the container moveable */
   margin: 0 auto 20px;  /* top R/L bottom */
   width:600px;          /* Main bar total width, minimize to not wrap to two lines*/
}

      /* remove all the bullets, borders and padding from the default list styling */
.menu ul {
   padding:0;
   margin:0;
   list-style-type:none;
}

      /* float the list to make it horizontal and a relative positon so that you can control the dropdown menu positon */
.menu li {
   float:left;          /* float right will reverse the main buttons */
   text-align:center;
   width:auto; 
   position:relative;
   padding: 0;
}

      /* style the links for the top level */
.menu a, .menu a:visited {
   display:block;
   text-decoration:none;  /* none, overline, underline */
   color:black;
   background:white;
   font-size:11pt;
   font-family: verdana, Comic Sans MS, tahoma, helvetica, arial, sans-serif;
   width:auto;            /* Defines the main box dimensions. */
   height:20px;           /* How tall your cells are */
   line-height:20px;      /* vertical text alignment in cell */ 
   padding: 0 10px;       /* top/bottom R/L */
   min-width: 100px;
  /* text-align:center; */  /* center text in cell, adjust R/L padding above */
}

      /* main hover ?IE? */
.menu a:hover, .menu ul ul a:hover {
   color:gray;
   background:white;
}

      /* main hover */
.menu :hover > a, .menu ul ul :hover > a {
   color:gray;
   background:white;
}

      /* a hack so that IE5.5 faulty box model is corrected */
* html .menu a, * html .menu a:visited {width:130px; w\idth:130px;}

      /* style the table so that it takes no part in the layout */
.menu table {position:absolute; top:0; left:0;}


      /* ***** LEVEL 2 ***** LEVEL 2 ***** LEVEL 2 ***** */

      /* another hack for IE5.5 */
* html .menu ul ul {top:20px; t\op:21px;}   /* IE gap between main bar and the dropdown items */

      /* hide the sub levels and give them a position absolute so that they take up no room */
.menu ul ul {
   visibility:hidden;
   position:absolute;
   height:0;
   top:20px;       /* move drop vertically */
   left:-30px;     /* move drop horizontally   */
   width:160px;    /* Size of the daughter cells */
}

      /* style the second level background non-hover */
.menu ul ul a.drop, .menu ul ul a.drop:visited {background:white;}  /* if 3rd level exists */

      /* style the second level hover */
.menu ul ul a.drop:hover {background:white;}
.menu ul ul :hover > a.drop {background:white;}

      /* style the second level links */
.menu ul ul a, .menu ul ul a:visited {
   color:black;
   background:white;
   height:20px; 
   line-height:20px; 
   width:160px;
}

.menu ul ul :hover > a.drop  {background:white;color:gray;}   /* 2nd if 3rd level exists */

      /* yet another hack for IE5.5 */
* html .menu ul ul a {width:120px; w\idth:120px;}


      /* ***** LEVEL 3 ***** LEVEL 3 ***** LEVEL 3 ***** */

      /* position the third level flyout menu */
.menu ul ul ul {
   left:160px; 
   top:0;
   width:160px;
   height:auto;
}

.menu ul ul ul li a {color:black;}
.menu ul ul ul li a:hover {color:gray;}

      /* style the third level background */
.menu ul ul ul a, .menu ul ul ul a:visited {background:white;}  /* not FF */

      /* style the third level hover */
.menu ul ul ul a:hover {background:white;}
.menu ul ul ul :hover > a {background:white;}     /* 3rd (w/o 4th) 4th hover */

      /* style the third level links */
.menu ul ul ul a, .menu ul ul ul a:visited {
   color:black;              /* hover 2nd > 3rd & 4th */
   background:white;       /* hover 3rd > 4th */
   height:25px; 
   line-height:25px; 
   width:160px;
}
      /* make the 2nd level visible when hover on 1st level */
.menu ul :hover ul {visibility:visible;}
      /* make the 3rd level visible when you hover over 2nd level */
.menu ul :hover ul :hover ul {visibility:visible;}
      /* keep the 3rd level hidden when you hover on 1st level */
.menu ul :hover ul ul {visibility:hidden;}

/* End Navbar Code */
Old Nov-28-2010, 10:36 AM
#6
slipkid is offline slipkid OP
Steve
slipkid's Avatar
thanks
Thanks ALLEN $ JFRIEND.............all set now
__________________
Regards
Steve

Nikon D90, 70-200VR
www.slipkid.com
"The problem with socialism is that you eventually run out of other people's money". -- Margaret Thatcher
Tell The World!  
Similar Threads Thread Starter Forum Replies Last Post
After deleting, photo still shown, Nav URL's messed up mbrady Bug Reporting 2 Sep-12-2009 05:12 PM
I think I messed things up KellyJohnson SmugMug Customization 5 Aug-30-2009 09:45 PM
Now I messed it up... heatherfeather Mind Your Own Business 6 Nov-13-2008 10:34 AM
I messed it up again....help! Janelle SmugMug Customization 5 Apr-19-2007 05:01 PM
B&H site is messed up; be careful David_S85 The Big Picture 17 Sep-29-2005 09:09 AM


Thread Tools
Display Modes

Posting Rules  
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump