PDA

View Full Version : Easy Customizer NAV drop down


dblake15
May-29-2009, 08:49 AM
Hi everyone,

I am loving the site by the way and just trying to get it all setup. I have been searching through the threads and cannot get this to work.

I have easy customizer nav headers (menus) that I created and I would like them to drop down.

I also and trying to figure out how to put a nice border around my slideshow and make it fit the box.

Any help is greatly appreciated.

thanks

jh4wvu
Nov-17-2009, 06:00 AM
Bump

Allen
Nov-17-2009, 07:03 AM
Hi everyone,

I am loving the site by the way and just trying to get it all setup. I have been searching through the threads and cannot get this to work.

I have easy customizer nav headers (menus) that I created and I would like them to drop down.

I also and trying to figure out how to put a nice border around my slideshow and make it fit the box.

Any help is greatly appreciated.

thanks
EZC does not do drops, you will have to create it in "advanced site-wide
customization". See these pages and fire back in this thread if you have
any problems.
structure overview, each drop section is repetitive.
http://allen-steve.smugmug.com/gallery/2327835
CSS required, highly customizable
http://allen-steve.smugmug.com/gallery/2078255
background of how html is created
http://allen-steve.smugmug.com/gallery/2011077

sebmour
Nov-18-2009, 05:26 AM
Hi,

I have tried this http://allen-steve.smugmug.com/gallery/2327835 but my navbar drop down does'nt work.

http://www.sebastiendamour.com/

I am trying to regroup the contact me and blog under the Sebastien button in my navbar!

Do I have to add the CSS also? I don't understand much of coding but the CSS looks pretty long and full of colours I do not desire, is there a simpler one without breaking my navbar?

Thank you

Allen
Nov-18-2009, 07:04 AM
Hi,

I have tried this http://allen-steve.smugmug.com/gallery/2327835 but my navbar drop down does'nt work.

http://www.sebastiendamour.com/

I am trying to regroup the contact me and blog under the Sebastien button in my navbar!

Do I have to add the CSS also? I don't understand much of coding but the CSS looks pretty long and full of colours I do not desire, is there a simpler one without breaking my navbar?

Thank you Change the nav html to this. This nav is named by the class name menu which the CSS formats. Also fixes a few errors.

<div class="menu">
<ul>
<li><a class="drop" href="#nopick">∞ Sébastien ∞
<!--[if gte IE 7]><!--></a><!--<![endif]-->
<!--[if lte IE 6]><table><tr><td><![endif]-->
<ul>
<li><a class="drop" href="/Photography/S%C3%A9bastien/10304369_qLvPP">∞ About Me ∞</a>
<li><a href="/gallery/3682135">∞ Contact me ∞</a></li>
<li><a href="http://sebmour.wordpress.com/">∞ Blog ∞</a></li>
</ul> <!--[if lte IE 6]></td></tr></table></a><![endif]-->
</li>
</ul> <!--[if lte IE 6]></td></tr></table></a><![endif]-->
</div>

sebmour
Nov-18-2009, 03:38 PM
Thank you but this makes me a separate menu...

I wanted to keep my original navbar look and make it work there but I see that it might not be possible...:dunno

Allen
Nov-19-2009, 09:45 AM
Thank you but this makes me a separate menu...

I wanted to keep my original navbar look and make it work there but I see that it might not be possible...:dunno
Sure it's possible, just have to re-edit html. If no one chimes in I'll look again
later today. Bump this later if no response so I'll see it as unread.

sebmour
Nov-20-2009, 05:42 AM
bump to see if possible to achieve this for me...

Thank you for your time and help!

Allen
Nov-20-2009, 09:10 AM
bump to see if possible to achieve this for me...

Thank you for your time and help! This code can be added and only you will see it logged in to allow you to
tweak it just right before going public. May have some details still to work
out, esp. for browsers other than Firefox.

Add this below your current nav in your header.

<div class="menu">
<ul>
<li>∞</li>
<li><a href="/gallery/2735260">The Art of Weddings</a></li>
<li>∞</li>
<li><a href="/gallery/2293923">The Art of People</a></li>
<li>∞</li>
<li><a href="/gallery/3624265">The Art of Images</a></li>
<li>∞</li>
<li><a href="/gallery/2945147">Love struck</a></li>
<li>∞</li>
<li><a class="drop" href="/gallery/10304369_qLvPP">Sébastien
<!--[if gte IE 7]><!--></a><!--<![endif]--> <!--[if lte IE 6]><table><tr><td><![endif]-->
<ul>
<li><a href="/Pricing/3682135_sZmC3">∞ Contact me ∞</a></li>
<li><a href="http://sebmour.wordpress.com/">∞ Blog ∞</a></li>
</ul> <!--[if lte IE 6]></td></tr></table></a><![endif]-->
</li>
<li>∞</li>
</ul> <!--[if lte IE 6]></td></tr></table></a><![endif]-->
</div>
Add this to your CSS

/* CSS Dropdown Nav Bar */
/* Original code by Stu Nicholls of */
/* http://www.cssplay.co.uk/ */
/* Edited by me for content, formatting and some elements */
/* Please help support CSSPlay at: */
/* http://www.cssplay.co.uk/support.html */

/* temporary to show only when logged in
remove these 2 rules along with the
#navcontainer html/CSS to go public */
.notLoggedIn .menu {display: none;}
.notLoggedIn #navcontainer {display: none;}


/* Common Styling */
.menu {
position: relative;
display: block;
z-index: 99;
padding: 20px 0px 30px 0px; /* spacing around menu - top right bottom left */
height: 20px; /* menu container (div .menu) */
width: 750px; /* width of menu - minimize this until doesn't wrap to two lines - too large effects centering */
margin: 0 auto; /* this should center navbar, if not tweak with left's below */
}

.menu ul {
padding: 10px 0px 10px 0px; /* this effects menu centering if too big */
margin:0 auto; /* this maybe not needed? */
list-style-type: none;
}

.menu ul li {
/* margin: 0 2px 0 2px; */ /* adds space between main menu boxes */
float:left; /* WARNING: float right reverses menu */
position:relative !important; /* ***** Carbonite fix ***** */
}

.menu ul li a,
.menu ul li a:visited {
display: block;
font-size: 13pt; /* main buttons */
color: black ; /* main buttons text non-hover*/
text-decoration:none;
text-align: center; /* centers text in buttons */
width: auto; /* main box width */
height: 20px; /* main box height */
/* border: 1px solid red; */ /* start your design with borders on, easier to position DD's & FO's */
border-width: 1px 1px 1px 1px;
background: none; /* main button color */
padding-left: 10px;
padding-right: 10px;
line-height: 20px; /* positions text up/down in box */
}


* html .menu ul li a, .menu ul li a:visited {
width: 160px; w\idth: auto; /* IE main button */
}

.menu ul li ul {
display: none;}

/* */
/* Specific to Non-IE browsers */
/* */

.menu ul li:hover a {
color: red; /* main when hover DD */
background: white; /* main when hover DD */
}

.menu ul li:hover ul {
display: block;
position: absolute !important; /* ***** Carbonite fix ***** */
top: -4px; /* FF DD up down */
margin-top: 17px; /* FF main mouse active vertical */
left: -33px; /* FF DD right left */
width: 190px; /* unknown */
}

.menu ul li:hover ul li ul {
display: none;
}

.menu ul li:hover ul li a {
display: block;
background: white; /* DD FO non-hover */
color: black; /* DD FO non-hover */
height: auto;
line-height: 20px; /* DD FO box height */
padding: 0px 0px;
width: 160px; /* DD FO box width */
}

.menu ul li:hover ul li a:hover {
background: white; /* DD FO hover */
color: red; /* DD FO hover */
}

.menu ul li:hover ul li:hover ul {
display: block;
position: absolute;
left: 102px; /* FF FO right left */
top: -27px; /* FF FO up down */
width: 160px; /* FF FO box width */
}

/* */
/* Specific to IE browsers */
/* */

.menu ul li a:hover {
/* text-decoration: none; */ /* might be needed */
color: red; /* main hover */
background: white; /* main hover */
}

.menu ul li a:hover ul {
display: block;
position: absolute !important; /* ***** Carbonite fix ***** */
top: 2px; /* DD container up down */
background: none; /* gets rid of DD container none is */
margin-top: 7px; /* DD container up down */
left: 0px; /* DD right left */
}

.menu ul li a:hover ul li a {
display: block;
background: white; /* IE DD color non-hover */
color: red; /* IE DD color non-hover */
height: auto;
line-height: 20px; /* IE DD FO box height */
padding: 0px;
width: 160px; /* IE DD FO box */
}

.menu ul li a:hover ul li a ul {
visibility:hidden;
position:absolute;
height: 0;
width: 0;
}

.menu ul li a:hover ul li a:hover {
background: red; /* DD FO hover */
color: white; /* DD FO hover */
}

.menu ul li a:hover ul li a:hover ul {
display: block;
position: absolute;
top: -22px; /* FO up down */
color: #000000; /* unknown */
left: 160px; /* FO right left */
}

/*ADD TO FIX IE*/
/* a hack so that IE5.5 faulty box model is corrected */

* html .menu a, * html .menu a:visited {
width: 160px;
w\idth: 160px;
}

/* another hack for IE5.5 */

* html .menu ul ul {
top: 30px;
t\op: 31px; /* IE gap between main bar and the dropdown items */
}

/* style the table so that it takes no part in
the layout - required for IE to work */
.menu table {
position:absolute;
top:auto 0; left:0;
}

/* yet another hack for IE5.5 */

* html .menu ul ul a {
width: 190px; /* unknown */
w\idth: 190px; /* DD FF width */
}

/*END EXTRA ADDS FOR IE*/

/* ADD TO HIDE EXTRA LEVELS */
/* make the 2nd level visible when
hover on 1st level list OR link */
.menu ul a:hover ul, /* IE */
.menu ul:hover ul { /* FF */
visibility:visible;
}

/* keep the 3rd level hidden when you
hover on 1st level list OR link */
.menu ul a:hover ul ul, /* IE */
.menu ul:hover ul ul { /* FF */
visibility:hidden;
}

/* keep the 4th level hidden when you
hover on 2nd level list OR link */
.menu ul li a:hover ul li a:hover ul ul, /* IE */
.menu ul li:hover ul li:hover ul ul { /* FF */
visibility:hidden;
}

/* make the 3rd level visible when you hover
over 2nd level list OR link */
.menu ul a:hover ul a:hover ul, /* IE */
.menu ul:hover ul:hover ul { /* FF */
visibility:visible;
}

/* make the 4th level visible when you
hover over 3rd level list OR link */
.menu ul li a:hover ul li a:hover ul li a:hover ul, /* IE */
.menu ul li:hover ul li:hover ul li:hover ul { /* FF */
visibility:visible;
}

/* ==== END NAVBAR CODE ==== */