|
|
Thread Tools | Display Modes |
|
#2201
|
|
|
Big grins
|
IE 8 Issues
Allen I believe I took care of all the . menu locations I could see that had a background set to "none", and then some that I found that didn't have any "background:" at all. I am still having an issue with the drop down disappearing as you mouse over it in IE8. I cant check IE7 anymore may be still having the problem there also. It seems if I scroll real fast and hit the bottom nav links just right I can get to them but if I try to just scroll like a "normal" person they disappear. could you look at the code again for me and see if there is something I am missing... I looked on the hacks and API page and didn't see anything for IE8??? Firefox is working just like it is suppose to....
Thanks for the help |
|
|
|
|
#2202
|
||
|
"tweak 'til it squeaks"
|
Quote:
__________________
Al My Website my Blog Mozilla Firefox Web Developer Firebug Customization FAQ Banner/Navbar/Slideshow Tutor |
|
|
|
||
|
#2203
|
||
|
Big grins
|
Hi, Allen,
Thanks for writing up this code. I would like to use this code for a dropdown menu on my site: http://gallery.kimashcraft.com/, so my smugmug side matches my wordpress side (http://kimashcraft.com). Is that possible? If so, can you maybe get one (Info or Investment) started for me so I can see what needs to go where in the code? I would really appreciate it more than you will ever know. Thanks! Quote:
|
|
|
|
||
|
#2204
|
||
|
"tweak 'til it squeaks"
|
Quote:
Code:
#mysearch {
text-align: right;
padding-right: 200px;}
__________________
Al My Website my Blog Mozilla Firefox Web Developer Firebug Customization FAQ Banner/Navbar/Slideshow Tutor |
|
|
|
||
|
#2205
|
||
|
"tweak 'til it squeaks"
|
Quote:
Code:
<div class="menu">
<ul>
<li><a href="/">Home</a></li>
<li><a href="#noclick">Galleries
<!--[if gte IE 7]><!--></a><!--<![endif]-->
<!--[if lte IE 6]><table><tr><td><![endif]-->
<ul>
<li><a href="Link">drop</a></li>
<li><a href="Link">drop</a></li>
</ul> <!--[if lte IE 6]></td></tr></table></a><![endif]-->
</li>
<li><a class="drop" href="#noclick">Info
<!--[if gte IE 7]><!--></a><!--<![endif]-->
<!--[if lte IE 6]><table><tr><td><![endif]-->
<ul>
<li><a href="Link">drop</a></li>
<li><a href="Link">drop</a></li>
</ul> <!--[if lte IE 6]></td></tr></table></a><![endif]-->
</li>
<li><a href="Link">Menu 1</a></li>
<li><a href="Link">Menu 1</a></li>
<li><a href="Link">Menu 1</a></li>
</ul>
</div>
__________________
Al My Website my Blog Mozilla Firefox Web Developer Firebug Customization FAQ Banner/Navbar/Slideshow Tutor |
|
|
|
||
|
#2206
|
||
|
Big grins
|
Allen,
I appreciate you doing this for me, but I guess I'm just not following. I know I need to CSS part in there, too, so it formats correctly, but I don't know that I can do this. Quote:
|
|
|
|
||
|
#2207
|
||
|
"tweak 'til it squeaks"
|
Quote:
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 40px; /* top R/L bottom */
width:500px; /* 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 position 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:12pt;
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: 60px; /* set to smallest text and use R/L padding above to space out */
}
/* main hover */
.menu a:hover, .menu :hover > a {
color:#47A0C0;
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:0; /* move drop horizontally */
width:90px; /* 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:#000;
background:white;
height:20px;
line-height:20px;
width:90px;
text-align:left;
}
.menu ul ul :hover > a.drop {background:white;} /* 2nd if 3rd level exists */
/* yet another hack for IE5.5 */
* html .menu ul ul a {width:120px; w\idth:120px;}
/* 2nd level hover */
.menu ul ul a:hover, .menu ul ul :hover > a {
color:#47A0C0;
background:white;
}
/* make the 2nd level visible when hover on 1st level */
.menu ul :hover ul {visibility:visible;}
/* End Navbar Code */
__________________
Al My Website my Blog Mozilla Firefox Web Developer Firebug Customization FAQ Banner/Navbar/Slideshow Tutor |
|
|
|
||
|
#2208
|
||
|
Big grins
|
Thanks, Allen,
I have placed both pieces of code in the appropriate places. If you can direct me on what goes where, I might be able to follow, but I'm not making any promises Quote:
|
|
|
|
||
|
#2209
|
|
|
"tweak 'til it squeaks"
|
Next step is to modify the html to get all you links and any more main buttons added.
__________________
Al My Website my Blog Mozilla Firefox Web Developer Firebug Customization FAQ Banner/Navbar/Slideshow Tutor |
|
|
|
|
#2210
|
|
|
Big grins
|
I figured part of it out as far as putting the links in for the first part that you had already given me. Too bad I'm already lost for the rest of it. Also, I did test it and the part I entered actually works, however the alignment is a little off due to the font size and spacing. I know that is in the CSS, but I can't figure that part out either.
Last edited by Kimbo6891; Oct-13-2012 at 08:41 PM. |
|
|
|
|
#2211
|
||
|
Big grins
|
I DID IT!!!!
THANKS FOR YOUR HELP!!!!!Quote:
|
|
|
|
||
|
#2212
|
||
|
Big grins
|
spacing issues
Hey Allen,
I am trying to get one drop down styled properly. the page is http://www.ericandjanaphotography.co...5601593_9SS7gL the galleries tab is the drop down. I have a margin property set in the main bar, to align it with the background image. but it also results in a margin between the two drop down links. Removing the margin property basically just stacked directly over top of where it says galleries. I would actually like to preserve the spacing so the first link "families" appears right at the bottom of the grey bar, but without the gap between "families" and "newborns" Quote:
|
|
|
|
||
|
#2213
|
||
|
"tweak 'til it squeaks"
|
Quote:
<li><a class="drop" href="/Other/Pricing/20835837_7xHKR7" title="">Pricing<!-- no</a></li>on drop lines --> <li><a class="drop" href="#link" title="">Galleries<!-- no </a></li> on drop lines --> <li><a class="drop" href="/Families/Community/25601608_QxLJHJ" title="">Community<!-- no </a></li> on drop lines --> in CSS End of header/Navbar code */ Start of JFriend HTML5 Slideshow CSS */
__________________
Al My Website my Blog Mozilla Firefox Web Developer Firebug Customization FAQ Banner/Navbar/Slideshow Tutor Last edited by Allen; Oct-15-2012 at 07:53 AM. |
|
|
|
||
|
#2214
|
|
|
"tweak 'til it squeaks"
|
I'd remove the myHeader div, it's creating a huge gap at the top. That gap/spacing can be
configured with margin-top in the banner CSS. <div id="myHeader"> <div id="myBanner"></div> </div> To keep things straight and add info I'd add the red at the end of your html. <!-- End Navbar Code --> </div> <!-- closes navbarbackground -->
__________________
Al My Website my Blog Mozilla Firefox Web Developer Firebug Customization FAQ Banner/Navbar/Slideshow Tutor |
|
|
|
|
#2215
|
||
|
"tweak 'til it squeaks"
|
Quote:
__________________
Al My Website my Blog Mozilla Firefox Web Developer Firebug Customization FAQ Banner/Navbar/Slideshow Tutor |
|
|
|
||
|
#2216
|
|
|
Big grins
|
wow- thanks Allen,
looks like I had a pretty good mess going. I'll get to work on cleaning that stuff up. I'm not sure the older menu's will be used any more, but I didn't want to delete them until we had the newer stuff straight. If I can get this one to work properly, I think I'll be good. the one I am primarily using now is .familiesmenu thanks again. http://www.ericandjanaphotography.co...5601593_9SS7gL |
|
|
|
|
#2217
|
|
|
Big grins
|
Hi...sorry I am not too techy...i tried to copy paste the css code but i can't make it work. can you help me how and what i should post if i need the drop 1 lvl 2 and drop 2 lvl 2 for main 2 and main 3 nav bars.
thanks in advance |
|
|
|
|
#2218
|
|
|
"tweak 'til it squeaks"
|
Got a link to your site?
__________________
Al My Website my Blog Mozilla Firefox Web Developer Firebug Customization FAQ Banner/Navbar/Slideshow Tutor |
|
|
|
|
#2219
|
||
|
Big grins
|
One more quick question. I added in a few things on my nav bar and actually didn't break anything. I want three of the links to open in a separate window. Can you tell me how to modify this code to work like that?
Thanks! Quote:
|
|
|
|
||
|
#2220
|
||
|
"tweak 'til it squeaks"
|
Quote:
.... href="http://kimashcraft.com/about-kim/" target="_blank">About Kim</a></li>
__________________
Al My Website my Blog Mozilla Firefox Web Developer Firebug Customization FAQ Banner/Navbar/Slideshow Tutor |
|
|
|
||
| Tell The World! | |
| Tags | |
| customizatation , navbar | |
| Similar Threads | Thread Starter | Forum | Replies | Last Post | ![]() |
| DropDown NavBar Positioning and Color | CerebrusX | SmugMug Customization | 6 | Aug-08-2012 09:42 AM | |
| Please Help About Dropdown Navbar | wangyunpeng | SmugMug Customization | 2 | Jul-09-2011 10:51 AM | |
| single dropdown navbar? | dogwood | SmugMug Customization | 33 | Jun-21-2010 08:57 PM | |
| Dropdown Navbar | juan14888 | SmugMug Customization | 7 | Apr-19-2010 05:34 PM | |
| navbar dropdown code errors? | amyparsons | SmugMug Customization | 20 | Jan-09-2009 07:53 AM | |
| Thread Tools | |
| Display Modes | |
|
|