Digital Grin Photography Forum
Page 7  of  63

Digital Grin Photography Forum (http://www.dgrin.com/index.php)
-   SmugMug Customization (http://www.dgrin.com/forumdisplay.php?f=31)
-   -   Dropdown Navbar help thread (http://www.dgrin.com/showthread.php?t=168571)

eq2830 Aug-18-2010 08:53 AM

ahhh, the drop down is finally working on my end, just need to get it on one line....thank you soooo much allan!!!!!!!


Quote:

Originally Posted by eq2830 (Post 1442698)
smiles just saw your background comment...txs!


Allen Aug-18-2010 08:54 AM

Quote:

Originally Posted by eq2830 (Post 1442698)
smiles just saw your background comment...txs!

Did you see the last edit about the # sign?

eq2830 Aug-18-2010 08:55 AM

yes, i added the # sign to all of the color hex codes.

Quote:

Originally Posted by Allen (Post 1442702)
Did you see the last edit about the # sign?


eq2830 Aug-18-2010 11:03 AM

ok, figured out how to get it all on one line! making progress!!!

now i just want to adjust one thing on the nav bar...for the "events" drop down on the porfolio tab, i would like that to appear with the rest of the group and then have a fly out that has the event titles. right now all i see is a yellow strip. i tried to fix it and totally messed up the entire bar.

also can anyone please tell me what the heck i did wrong?? for some reason i lose my nav bar when i go to the "world as i see it" page.

almost there!!

Thanks again!!

erika

Quote:

Originally Posted by eq2830 (Post 1442705)
yes, i added the # sign to all of the color hex codes.


Allen Aug-18-2010 03:12 PM

Quote:

Originally Posted by eq2830 (Post 1442787)
ok, figured out how to get it all on one line! making progress!!!

now i just want to adjust one thing on the nav bar...for the "events" drop down on the porfolio tab, i would like that to appear with the rest of the group and then have a fly out that has the event titles. right now all i see is a yellow strip. i tried to fix it and totally messed up the entire bar.

also can anyone please tell me what the heck i did wrong?? for some reason i lose my nav bar when i go to the "world as i see it" page.

almost there!!

Thanks again!!

erika

Change your nav html to this. Found a missing </li> and extra </ul>, </li>
Code:

<!-- 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 -->
<div class="menu">
<ul>
<li><a href="/" title="">Home</a></li>
<li>&nbsp;|&nbsp;</li>
<li><a class="drop" href="#nopick" title="">Portfolio
    <!--[if gte IE 7]><!--></a><!--<![endif]-->
    <!--[if lte IE 6]><table><tr><td><![endif]-->
    <ul>
        <li><a href="/Portfolio/Child-Within/9891409_UqZid" title="">a child within</a></li>
        <li><a href="/Portfolio/Children-1/9638388_YmXaD" title="">families</a></li>
        <li><a href="/gallery/8138663_yuPxJ" title="">world as i see it</a></li>
        <li><a href="/Portfolio/Nature/8138532_PzDTa" title="">nature</a></li>
        <li><a href="/Portfolio/Music/13072779_FKkES" title="">music to my ears</a></li>
        <li><a class="drop" href="#nopick" title="">events
            <!--[if gte IE 7]><!--></a><!--<![endif]-->
            <!--[if lte IE 6]><table><tr><td><![endif]-->
            <ul>
                <li><a href="/Portfolio/Minervas-Retirement-Party/13055992_H4sBL" title="">Minerva’s Retirement Party</a></li>
                <li><a href="/Portfolio/Credit-Suisse/13041123_Wu8Zq" title="">Credit Suisse Softball Tourney</a></li>
                <li><a href="/Portfolio/Garrison2010/13038007_m8dkc" title="">Garrison, NY 2010</a></li>
            </ul> <!--[if lte IE 6]></td></tr></table></a><![endif]-->
        </li>
    </ul> <!--[if lte IE 6]></td></tr></table></a><![endif]-->
</li>
<li>&nbsp;|&nbsp;</li>
<li><a href="#nopick" title="">Info
    <!--[if gte IE 7]><!--></a><!--<![endif]-->
    <!--[if lte IE 6]><table><tr><td><![endif]-->
    <ul>
        <li><a href="/Behind-the-Lens/Your-Photographer/9616214_TCeAd" title="">behind the lens</a></li>
        <li><a href="/FAQs/FAQ/9896729_oaZJu" title="">faqs</a></li>
    </ul> <!--[if lte IE 6]></td></tr></table></a><![endif]-->
</li>
<li>&nbsp;|&nbsp;</li>
<li><a href="#nopick" title="">Investment
    <!--[if gte IE 7]><!--></a><!--<![endif]-->
    <!--[if lte IE 6]><table><tr><td><![endif]-->
    <ul>
        <li><a href="/Session-Fees/Session-Fees/13369959_X6D9s" title="">session fees</a></li>
        <li><a href="/Print-Prices/Print-Prices/13370049_gUuyZ" title="">print prices</a></li>
    </ul> <!--[if lte IE 6]></td></tr></table></a><![endif]-->
</li>
<li>&nbsp;|&nbsp;</li>
<li><a href="/Clients" title="">Client Access</a></li>
<li>&nbsp;|&nbsp;</li>
<li><a href="/Contact/Contact/9895503_yUBNH" title="">Contact me</a></li>
</ul>
</div>  <!-- closes menu -->
<!-- End Navbar Code -->

I'll look at CSS next.

Allen Aug-18-2010 03:30 PM

Quote:

Originally Posted by eq2830 (Post 1442787)
ok, figured out how to get it all on one line! making progress!!!

now i just want to adjust one thing on the nav bar...for the "events" drop down on the porfolio tab, i would like that to appear with the rest of the group and then have a fly out that has the event titles. right now all i see is a yellow strip. i tried to fix it and totally messed up the entire bar.

also can anyone please tell me what the heck i did wrong?? for some reason i lose my nav bar when i go to the "world as i see it" page.

almost there!!

Thanks again!!

erika

Color tweaks and flyout widening.
Code:

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

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

.menu ul ul ul li a:hover {color: white;}

      /* style the third level links */
.menu ul ul ul a, .menu ul ul ul a:visited {
  color:yellow;              /* hover 2nd > 3rd & 4th */
  background: #66CCFF;      /* hover 3rd > 4th */
  height:25px;
  line-height:25px;
  width:160px;
}


eq2830 Aug-18-2010 07:17 PM

Allen you are a GENIUS!!!!!!!!!! thank you soooo much!!!!:bow:barb

Quote:

Originally Posted by Allen (Post 1442997)
Color tweaks and flyout widening.
Code:

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

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

.menu ul ul ul li a:hover {color: white;}

      /* style the third level links */
.menu ul ul ul a, .menu ul ul ul a:visited {
  color:yellow;              /* hover 2nd > 3rd & 4th */
  background: #66CCFF;      /* hover 3rd > 4th */
  height:25px;
  line-height:25px;
  width:160px;
}



eq2830 Aug-18-2010 07:37 PM

ONE LAST QUESTION....for tonight at least :wink

my breadcrumbs on the "world as i see it" and the nav bar have disappeared...i have no idea what i did wrong...i went through the gallery settings of that page and the others and they all seem to be the same...any clues?

~e :scratch

Quote:

Originally Posted by eq2830 (Post 1443161)
Allen you are a GENIUS!!!!!!!!!! thank you soooo much!!!!:bow:barb


Allen Aug-18-2010 08:40 PM

Quote:

Originally Posted by eq2830 (Post 1443174)
ONE LAST QUESTION....for tonight at least :wink

my breadcrumbs on the "world as i see it" and the nav bar have disappeared...i have no idea what i did wrong...i went through the gallery settings of that page and the others and they all seem to be the same...any clues?

~e :scratch

Under gallery settings make sure "custom" is set for appearance and "hide owner" is not checked.

You missed one of the CSS changes.

.menu ul ul ul li a:hover {color: white;}

eq2830 Aug-19-2010 05:19 AM

thank you again!!! :bow i was wondering why only some of the hovers were working...knew it was something i missed...was looking but i guess my eyes were tired at that point...thanks for pointing me in the right direction!

this has been something that i have wanted to do for a long time!! and now i figured out why i was seeing the nav bar on two lines on my pc but not my mac...browser is OLDDDD!

Thanks again! :clap:clap:clap:clap:barb

~erika

Quote:

Originally Posted by Allen (Post 1443212)
Under gallery settings make sure "custom" is set for appearance and "hide owner" is not checked.

You missed one of the CSS changes.

.menu ul ul ul li a:hover {color: white;}


eq2830 Aug-19-2010 05:39 AM

i just asked someone else to take a look at the site and she also see's the nav on two lines, but when i look at it on my mac i see it on one. is there a code that we can slip in there to make sure everyone sees the nav on one line?

Quote:

Originally Posted by eq2830 (Post 1443319)
thank you again!!! :bow i was wondering why only some of the hovers were working...knew it was something i missed...was looking but i guess my eyes were tired at that point...thanks for pointing me in the right direction!

this has been something that i have wanted to do for a long time!! and now i figured out why i was seeing the nav bar on two lines on my pc but not my mac...browser is OLDDDD!

Thanks again! :clap:clap:clap:clap:barb

~erika


Allen Aug-19-2010 07:21 AM

Quote:

Originally Posted by eq2830 (Post 1443329)
i just asked someone else to take a look at the site and she also see's the nav on two lines, but when i look at it on my mac i see it on one. is there a code that we can slip in there to make sure everyone sees the nav on one line?

Increase the width in this until it stops wrapping. 530 > 540 > 550 > ....
Shouldn't take more then 10 or 20.

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

hiker99 Aug-19-2010 08:14 PM

Nav Bar Problems in IE6
 
I just noticed that the homepage for my website is not working correctly in IE6, and I think it may have to do with the CSS nav bar code. I am using the code from the tutorial that existed about two years ago. I copied the CSS code at the beginning of this thread and I am still having the same problems. The interesting thing is both versions of the code work very well in FF. Has anyone else run into this problem?

Here is a link to my website:

http://www.ewbphotography.com/

Eric

Allen Aug-20-2010 06:28 AM

Quote:

Originally Posted by hiker99 (Post 1443754)
I just noticed that the homepage for my website is not working correctly in IE6, and I think it may have to do with the CSS nav bar code. I am using the code from the tutorial that existed about two years ago. I copied the CSS code at the beginning of this thread and I am still having the same problems. The interesting thing is both versions of the code work very well in FF. Has anyone else run into this problem?

Here is a link to my website:

http://www.ewbphotography.com/

Eric

Might try this. Anywhere there is no drop end the line with </a></li>
Example below
Code:

        <li><a class="drop" href="/Yellowstone" title="">Yellowstone
            <!--[if gte IE 7]><!--></a><!--<![endif]-->
            <!--[if lte IE 6]><table><tr><td><![endif]-->

        </li>

like this

        <li><a href="/Yellowstone" title="">Yellowstone</a></li>


hiker99 Aug-20-2010 05:13 PM

Al you are a life saver. There were only two places in my code that needed correcting and it fixed the whole problem. I really appreciate the help.

SarahLynne Aug-23-2010 07:16 AM

I have a strange problem with my dropdown navbar. It's worked peftectly for the past little while (about a month) and I logged in this morning and all of a sudden things have gone weird. The entire navbar used to be on one line with the "galleries" section and flyouts on the left then guestbook then biography and there was never a huge black space at the top. I was not altering my advanced settings whatsoever and it worked fine last night. Can someone please help me?
link: http://www.sarahphotography.ca
Thanks so much, you guys are awesome!

Allen Aug-23-2010 03:36 PM

Quote:

Originally Posted by SarahLynne (Post 1445568)
I have a strange problem with my dropdown navbar. It's worked peftectly for the past little while (about a month) and I logged in this morning and all of a sudden things have gone weird. The entire navbar used to be on one line with the "galleries" section and flyouts on the left then guestbook then biography and there was never a huge black space at the top. I was not altering my advanced settings whatsoever and it worked fine last night. Can someone please help me?
link: http://www.sarahphotography.ca
Thanks so much, you guys are awesome!

Remove the extra two }'s
Then change the top margin of your nav from 1000px to something like
10px. Might need to increase your menu width to 380 to keep it from
wrapping.
Code:

/* CSS Section */

}
      /* style the outer div to give it width */

}
.menu {
  z-index:99;
  align: right;
  float: right;
  margin: 1000px auto 20px;  /* top R/L bottom */
  position:relative;    /* Make the container moveable */
  width:360px;          /* Main bar total width, minimize to center */
}


Ethrock Aug-30-2010 05:42 PM

So I recently attempted putting this onto a webpage and ran into a little difficulty, rather than getting the effective dropdown menu, I simply got a list of text in the format of;

Code:

Home
Main 2
  Drop 1 Lvl 2
  Drop 2 Lvl 2
Main 3
  Drop 1 Lvl 2
  Drop 2 Lvl 2
    Flyout 1 Lvl 3
    Flyout 2 Lvl 3
  Drop 3 Lvl 2
    Flyout 1 Lvl 3
    Flyout 2 Lvl 3
      Flyout 1 Lvl 4
      Flyout 2 Lvl 4
Main 4
Main 5

I may have missed something while reading through the original post, but I have essentially copied over the code from the OP. I attempted making a few modifications where I thought would be fit but it pretty much burned the whole thing down, so I reverted. My code is as follows;

In the CSS:
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;
  margin: 0 auto 20px;  /* top R/L bottom */
  position:relative;    /* Make the container moveable */
  width:630px;          /* Main bar total width, minimize to center */
}

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

.menu ul ul {
  width:130px;
}

      /* float the list to make it horizontal and a relative positon so that you can control the dropdown

menu positon */
.menu li {
  float:left;
  text-align:center;
  width:auto;
  position:relative;
  padding: 0;
}

      /* style the links for the top level */
.menu a, .menu a:visited {
  display:block;
  font-size:12pt;
  text-decoration:none;
  color:black;
  background:white;
  border:1px solid black;
  border-width:1px 1px 1px 1px;
  font-family: verdana;
  width:auto;            /* Defines the main box dimensions. */
  height:25px;          /*How tall your cells are */
  line-height:25px;      /*Adjust this to vertically center your text in each cell. Should be about the

same as height. */
  padding: 0 10px;
  min-width: 100px;
}

      /* 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 second level background non-hover */
.menu ul ul a.drop, .menu ul ul a.drop:visited {background:yellow;}  /* if 3rd level exists */

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

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

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

      /* hide the sub levels and give them a positon absolute so that they take up no room */
.menu ul ul {
  visibility:hidden;
  position:absolute;
  height:0;
  top:25px;
  left:0;
  width:130px;  /* Size of the daughter cells */
}

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

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

.menu ul ul ul li a {
  color:purple;
}

.menu ul ul ul li a:hover {
  color:green;
}

      /* position the fourth level flyout menu */
.menu ul ul ul ul {
  left:130px;
  top:0;
  width:130px;
  height: auto !important;
}

    /* 4th level non-hover */
.menu ul ul ul ul li a {
  color:blue;
  width:150px;
}

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

      /* style the second level links */
.menu ul ul a, .menu ul ul a:visited {
  color:red;
  background:green;
  height:25px;
  line-height:25px;
  width:100px;
}

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

      /* style the third level links */
.menu ul ul ul a, .menu ul ul ul a:visited {
  color:pink;              /* hover 2nd > 3rd & 4th */
  background:orange;        /* hover 3rd > 4th */
  height:25px;
  line-height:25px;
  width:110px;
}

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

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

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

      /* make the 2nd level visible when hover on 1st level list OR link */
.menu ul :hover ul {visibility:visible;}
      /* keep the 3rd level hidden when you hover on 1st level list OR link */
.menu ul :hover ul ul {visibility:hidden;}
      /* keep the 4th level hidden when you hover on 2nd level list OR link */
.menu ul :hover ul :hover ul ul {visibility:hidden;}
      /* make the 3rd level visible when you hover over 2nd level list OR link */
.menu ul :hover ul :hover ul {visibility:visible;}
      /* make the 4th level visible when you hover over 3rd level list OR link */
.menu ul :hover ul :hover ul :hover ul {visibility:visible;}

/* End Navbar Code */

In the HTML:
Code:

<!-- 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 -->

<div class="menu">
<ul>

<li><a href="/" title="">Home</a></li>

<li><a class="drop" href="#link" title="">Main 2  <!-- no </a></li> on drop lines -->
    <!--[if gte IE 7]><!--></a><!--<![endif]-->
    <!--[if lte IE 6]><table><tr><td><![endif]-->
    <ul>
        <li><a href="#link" title="">Drop 1 Lvl 2</a></li>
        <li><a href="#link" title="">Drop 2 Lvl 2</a></li>
    </ul> <!--[if lte IE 6]></td></tr></table></a><![endif]-->
</li>

<li><a class="drop" href="#link" title="">Main 3
    <!--[if gte IE 7]><!--></a><!--<![endif]-->
    <!--[if lte IE 6]><table><tr><td><![endif]-->
    <ul>
        <li><a href="#link" title="">Drop 1 Lvl 2</a></li>

        <li><a class="drop" href="#link" title="">Drop 2 Lvl 2
            <!--[if gte IE 7]><!--></a><!--<![endif]-->
            <!--[if lte IE 6]><table><tr><td><![endif]-->
            <ul>
                <li><a href="#link">Flyout 1 Lvl 3</a></li>
                <li><a href="#link">Flyout 2 Lvl 3</a></li> 
            </ul> <!--[if lte IE 6]></td></tr></table></a><![endif]-->
        </li>
       
        <li><a class="drop" href="#link" title="">Drop 3 Lvl 2
            <!--[if gte IE 7]><!--></a><!--<![endif]-->
            <!--[if lte IE 6]><table><tr><td><![endif]-->
            <ul>
                <li><a href="#link">Flyout 1 Lvl 3</a></li>

                <li><a class="drop" href="#link" title="">Flyout 2 Lvl 3
                    <!--[if gte IE 7]><!--></a><!--<![endif]-->
                    <!--[if lte IE 6]><table><tr><td><![endif]-->
                    <ul>
                        <li><a href="#link">Flyout 1 Lvl 4</a></li>
                        <li><a href="#link">Flyout 2 Lvl 4</a></li>
                    </ul> <!--[if lte IE 6]></td></tr></table></a><![endif]-->
                </li>

            </ul> <!--[if lte IE 6]></td></tr></table></a><![endif]-->
        </li>

    </ul> <!--[if lte IE 6]></td></tr></table></a><![endif]-->
</li>

<li><a href="#link" title="">Main 4</a></li>

<li><a href="#link" title="">Main 5</a></li>

</ul>
</div>  <!-- closes menu -->
<!-- End Navbar Code -->

Any and all help is greatly appreciated, thank you very much!

Allen Aug-30-2010 07:58 PM

Quote:

Originally Posted by Ethrock (Post 1450830)
So I recently attempted putting this onto a webpage and ran into a little difficulty, rather than getting the effective dropdown menu, I simply got a list of text in the format of;
Any and all help is greatly appreciated, thank you very much!

Would love to help but need a link to your site.

Ethrock Aug-31-2010 04:24 AM

Quote:

Originally Posted by Allen (Post 1450904)
Would love to help but need a link to your site.



http://www.kimadzichphotography.com

I didn't add the link because the bar is not there, because of the fact that it didn't work and just created a half page long of text, as stated in my full post above. So all that's there is a website without the dropdown nav menu, because the nav menu isn't working.

Allen Aug-31-2010 04:50 AM

Quote:

Originally Posted by Ethrock (Post 1451052)
http://www.kimadzichphotography.com

I didn't add the link because the bar is not there, because of the fact that it didn't work and just created a half page long of text, as stated in my full post above. So all that's there is a website without the dropdown nav menu, because the nav menu isn't working.

Put what you can in and also add this to your CSS to hide it from visitors.
Only you will see this "nav in progress" when logged in. When it's perfected
you can remove this CSS.

.notLoggedIn .menu {display: none;}

Anyone helping will use WebDev to temp disable that CSS so they can help with the nav.

Ethrock Aug-31-2010 06:23 PM

My apologies for wasted time, but I've got it working perfectly. Thank you all very much for your assistance!

Allen Aug-31-2010 07:39 PM

Quote:

Originally Posted by Ethrock (Post 1451799)
My apologies for wasted time, but I've got it working perfectly. Thank you all very much for your assistance!

Looks good :thumb If you need any help fire back here.

Road Explorer Sep-01-2010 09:37 AM

I need some help!! I have been working on this for day and I still cannot seem to get it right. I am trying to make a nav bar. Here is what I have in the CSS.
#navcontainer ul {
margin: 0;
padding: 0;
list-style-type: none;
text-align: center;
}
#navcontainer ul li {
display: inline;
}
#navcontainer ul li a {
text-decoration: none;
padding: .2em 1em;
color: #000000;
background-color: #000000;
}
#navcontainer ul li a:hover {
color: #000000;
background-color: #369;

Here is what I have in the Custon Header

<div id="my_banner"> </div>
<div id="navcontainer">
<ul>
<li><a href="/">Home</a></li>
<li><a href="12688026">About Me</a></li>
<li><a href="http://road-explorer.smugmug.com/Photography">Galleries</a></li>
<li><a href="/gallery/13580084">Guestbook</a></li>
</ul>
</div>

I cannot get it to full display on my home page. What am I doing wrong? Here is the my web http://road-explorer.smugmug.com

Allen Sep-01-2010 09:54 AM

Quote:

Originally Posted by Road Explorer (Post 1452228)
I need some help!! I have been working on this for day and I still cannot seem to get it right. I am trying to make a nav bar. Here is what I have in the CSS.
...

I cannot get it to full display on my home page. What am I doing wrong? Here is the my web http://road-explorer.smugmug.com

Try this
Code:

.homepage #header_wrapper {display: none;}
***************                << remove these *'s

#my_banner {
width: 750px;
height: 150px;
margin: 0 auto;
background: url(http://www.smugmug.com/photos/XXXXXX_YYYYY-O.gif) no-repeat;
}                << add the missing }

#navcontainer ul {
... (SNIP) ...

That big gap your see above the nav is the blank banner because you haven't added a photo number.

Luckybunnyhoney Sep-01-2010 01:47 PM

AHHHHHHH HELP PLEASE ~ I have tried everything I can't center my dang navbar - FOR THE LOVE OF GOD (I tried three days before coming forth) But I'm a broken girl with an offcenetered nav bar =( I almost have it perrrfect/ AND TO THE LEFT =(
http://www.lizziefaye.com

Allen Sep-01-2010 07:06 PM

Quote:

Originally Posted by Luckybunnyhoney (Post 1452451)
AHHHHHHH HELP PLEASE ~ I have tried everything I can't center my dang navbar - FOR THE LOVE OF GOD (I tried three days before coming forth) But I'm a broken girl with an offcenetered nav bar =( I almost have it perrrfect/ AND TO THE LEFT =(
http://www.lizziefaye.com

Try this. Minimize the width until it doesn't wrap to two lines. The auto r/l in the
margin centers the width.
Code:

.menu{
    width: 650px;
    margin: 0 auto;  /* top/bottom R/L */
    border:none;
    border:0px;
    padding:0px;
    font: 67.5% "Lucida Sans Unicode", "Bitstream Vera Sans", "Trebuchet Unicode MS", "Lucida Grande", Verdana, Helvetica, sans-serif;
    font-size:14px;
    font-weight:bold;
    }


Luckybunnyhoney Sep-01-2010 09:17 PM

Quote:

Originally Posted by Allen (Post 1452646)
Try this. Minimize the width until it doesn't wrap to two lines. The auto r/l in the
margin centers the width.
Code:

.menu{
    width: 650px;
    margin: 0 auto;  /* top/bottom R/L */
    border:none;
    border:0px;
    padding:0px;
    font: 67.5% "Lucida Sans Unicode", "Bitstream Vera Sans", "Trebuchet Unicode MS", "Lucida Grande", Verdana, Helvetica, sans-serif;
    font-size:14px;
    font-weight:bold;
    }


Did I ever tell you how much I ♥ You? Sooooooo much! THANK YOU THANK YOU!

deveraux Sep-06-2010 07:42 AM

Hi Allen,

I've added another category to my navbar, and having a problem with wrapping. I've changed the width as indicated below, but no matter the value, it still wraps on me. Tried in FF and IE8, still no luck.

Any suggestions?
Thank you in advance



Quote:

Originally Posted by Allen (Post 1418103)
Change the width in this to center nav and not wrap to two lines.

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

Remove this at the bottom of your CSS.

/* style the outer div to give it width */
.menu {
float: right;
z-index:99;
margin: -60px 20px 60px 0;
}


Allen Sep-06-2010 03:22 PM

Quote:

Originally Posted by deveraux (Post 1455308)
Hi Allen,

I've added another category to my navbar, and having a problem with wrapping. I've changed the width as indicated below, but no matter the value, it still wraps on me. Tried in FF and IE8, still no luck.

Any suggestions?
Thank you in advance

I had to boost it to 880 to stop the wrap.

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

but, change the min width first and the whole bar will be narrower and center at about 710.
Code:

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

/* style the links for the top level */
.menu a, .menu a:visited {
display:block;
font-size:12pt;
text-decoration:none;
color:white;
background:black;
border:1px solid black;
border-width:1px 1px 1px 1px;
font-family: trebuchet, verdana, arial;
width:auto; /* Defines the main box dimensions. */
height:25px; /*How tall your cells are */
line-height:25px; /*Adjust this to vertically center your text in
                  each cell. Should be about theb same as height. */
padding: 0 10px;
min-width: 60px;
}

btw, fix the top part of your html. I would also try to keep the indents, easier to understand and trouble shoot.
Code:

<div class="menu">
<ul>
<li><a href="/Music">Live Concerts</a></li>
<li><a class="drop" href="/Nature">Nature
    <!--[if gte IE 7]><!--></a><!--<![endif]-->
    <!--[if lte IE 6]><table><tr><td><![endif]-->
    <ul>
        <li><a href="/Nature/Flowers">Flowers</a></li>
... (SNIP) ...


deveraux Sep-06-2010 04:17 PM

Thanks for the fix Allen, corrected the wrap. I'll play with the centering to see if I can get it right on my own, and if I have an issue I'll come back.

Thank you again!

mayukzone Sep-07-2010 10:09 PM

1 Attachment(s)
Allen ,

I have used your code for the drop down menu bar . I would like to move the menu bar towards right ( my right) . Need some help with that . PLease refer to the screenshot for a detailed understanding .
MY website - mayukhphotography.com

Allen Sep-08-2010 04:37 AM

Quote:

Originally Posted by mayukzone (Post 1456430)
Allen ,

I have used your code for the drop down menu bar . I would like to move the menu bar towards right ( my right) . Need some help with that . PLease refer to the screenshot for a detailed understanding .
MY website - mayukhphotography.com

Changes in red. Also remove the font size in first one.
No banner? If you add one the CSS will need some change.
Code:

/* style the outer div to give it width */
.menu {
z-index:99;
margin: 0 10px 0 auto; /* top R bottom L */

padding:10px 0px 10px 0px;
position:relative; /*Make the container moveable*/
width:550px;    /*Main bar total width*/
padding-bottom:10px; /* Padding between the bottom of your mainbar and the rest of your page */
}

/* style the links for the top level */
.menu a, .menu a:visited {
display:block;
font-size:11px;
text-decoration:none;
text-align:center;
color:#fff;
width:100px; /* Defines the main box dimensions. */
height:20px; /*How tall your cells are*/
border:1px solid #fff;
border-width:1px 1px 1px 1px;
background:#758279;
padding-left:1px;
line-height:20px; /*Adjust this to vertically center your text in each cell. Should be about the same as height. */
}

Went thru and cleaned up your html. I would suggest not using titles
unless they say something different then what the button does. They
get in the way when hovering the menu. Leave blank like this. title=""
For directly linked unlisted galleries use a link like. /gallery/13571493_k8EDp
No reason to expose the full path.
Code:

<!-- 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 -->

<div class="menu">
<ul>
<!-- First Main Menu Item -->
<li><a href="/" title="Mayukh Photography">Home</a></li>
<!-- Next Main Menu Item -->
<li><a class="drop" href="http://www.mayukh.smugmug.com/Art" title="Galleries">My Portfolio
    <!--[if gte IE 7]><!--></a><!--<![endif]-->
    <!--[if lte IE 6]><table><tr><td><![endif]-->
    <ul>
        <li><a href="/Art/Nature/13375855_z8o4g" title="My Portfolio">Nature/Landscapes</a></li>
        <li><a href="/Art/Cityscapes/13380099_gGuSa" title="My Portfolio">Cityscapes/Architecture</a></li>
        <li><a href="/Art/People/13380143_AE7zG" title="My Portfolio">People/Portraits</a></li>
        <li><a href="/Art/Abstracts/13380127_DX4VU" title="My Portfolio">Still Life/Abstract</a></li>
        <li><a href="/Art/Macro/13388971_f7uYP" title="My Portfolio">Micro World</a></li>
        <li><a href="#link" title="My Portfolio">Animal Kingdom</a></li>
    </ul> <!--[if lte IE 6]></td></tr></table></a><![endif]-->
</li>
<!-- Next Main Menu Item -->
<li><a href="#nopick" title="Contact me">Contact
    <!--[if gte IE 7]><!--></a><!--<![endif]-->
    <!--[if lte IE 6]><table><tr><td><![endif]-->
    <ul>
        <li><a href="mailto:mayukzone@gmail.com" title="Leave a Email">Email Me</a></li>
    </ul> <!--[if lte IE 6]></td></tr></table></a><![endif]-->
</li>
<!-- Next Main Menu Item -->
<li><a href="#nopick" title="Please sign My guestbook!">Guestbook
    <!--[if gte IE 7]><!--></a><!--<![endif]-->
    <!--[if lte IE 6]><table><tr><td><![endif]-->
    <ul>
        <li><a href="/gallery/13571493_k8EDp" title="write your feedback here">Comments &amp; Feedback</a></li>
    </ul> <!--[if lte IE 6]></td></tr></table></a><![endif]-->
</li>
<!-- Next Main Menu Item -->
<li><a href="#nopick" title="About the photographer">The Photographer
    <!--[if gte IE 7]><!--></a><!--<![endif]-->
    <!--[if lte IE 6]><table><tr><td><![endif]-->
    <ul>
        <li><a href="/gallery/13569301_2JSEo" title="About me">About Me</a></li>
    </ul> <!--[if lte IE 6]></td></tr></table></a><![endif]-->
</li>
<!-- Next Main Menu Item -->
</ul>
</div>


mdjgcl Sep-08-2010 04:00 PM

Hi Allen,

I am really new to trying to structure my smugmug homepage a specific way. I've read your tutorial but with limited coding experience, I don't think I have absorbed things as easily as I should have. I have used Easy Customizer to build and add a centered Navbar on my homepage. It appears to work correctly except for the Galleries button. What I am trying to do is to get all my public galleries to show in a drop down menu bar from the Galleries button in the navbar. Users can then mouse to which gallery they want and click on it to open it up. I can get one category of galleries to open correctly, ie all my Travel galleries, but the only way I can get another category of galleries to open is to have a second Galleries button in the navbar, which is a little cumbersome. I've spent two days going through past forum posts trying to sort this out and frankly it is starting to turning brain to mush. I've lost count of the number of threads dealing with this very issue and am now going in circles.

I know I need to add CSS code in the full editor to get the navbar to function the way I want it to. Wondering if you might be able to point me in the right direction. Sorry if I appear a little dense, must be retirement.

Many thanks

Mark
Phaeton Place

Allen Sep-08-2010 06:02 PM

Quote:

Originally Posted by mdjgcl (Post 1456863)
Hi Allen,

I am really new to trying to structure my smugmug homepage a specific way. I've read your tutorial but with limited coding experience, I don't think I have absorbed things as easily as I should have. I have used Easy Customizer to build and add a centered Navbar on my homepage. It appears to work correctly except for the Galleries button. What I am trying to do is to get all my public galleries to show in a drop down menu bar from the Galleries button in the navbar. Users can then mouse to which gallery they want and click on it to open it up. I can get one category of galleries to open correctly, ie all my Travel galleries, but the only way I can get another category of galleries to open is to have a second Galleries button in the navbar, which is a little cumbersome. I've spent two days going through past forum posts trying to sort this out and frankly it is starting to turning brain to mush. I've lost count of the number of threads dealing with this very issue and am now going in circles.

I know I need to add CSS code in the full editor to get the navbar to function the way I want it to. Wondering if you might be able to point me in the right direction. Sorry if I appear a little dense, must be retirement.

Many thanks

Mark
Phaeton Place

Your nav "Galleries" is linking directly to your Travel category. If you want
a separate page to display the galleries/categories see this tutor and look
at "The Galleries Page" sections. Then the link in your navbar bar would be
changed to "/galleries".

Your have galleries toggle for your galleries/categories box. In the upper
right corner pick "categories" to display by category.

KellyJohnson Sep-08-2010 09:27 PM

2 Nav Bar Questions
 
Hello,

I have tried a couple of things posted in this thread to solve my nav bar issues but they haven't worked. Here's what I'd like to do:

1. Position my nav bar up higher to the right of my logo

2. Make the background of the drop down boxes transparent so all you can see is the text.

3. Align all the text in the drop downs to the left

Thanks in advance for your help :-)
~Kelly

http://www.kellyjohnsonproducts.com

mayukzone Sep-09-2010 03:23 AM

1 Attachment(s)
Quote:

Originally Posted by Allen (Post 1456496)
Changes in red. Also remove the font size in first one.
No banner? If you add one the CSS will need some change.
Code:

/* style the outer div to give it width */
.menu {
z-index:99;
margin: 0 10px 0 auto; /* top R bottom L */
padding:10px 0px 10px 0px;
position:relative; /*Make the container moveable*/
width:550px;    /*Main bar total width*/
padding-bottom:10px; /* Padding between the bottom of your mainbar and the rest of your page */
}
 
/* style the links for the top level */
.menu a, .menu a:visited {
display:block;
font-size:11px;
text-decoration:none;
text-align:center;
color:#fff;
width:100px; /* Defines the main box dimensions. */
height:20px; /*How tall your cells are*/
border:1px solid #fff;
border-width:1px 1px 1px 1px;
background:#758279;
padding-left:1px;
line-height:20px; /*Adjust this to vertically center your text in each cell. Should be about the same as height. */
}

Went thru and cleaned up your html. I would suggest not using titles
unless they say something different then what the button does. They
get in the way when hovering the menu. Leave blank like this. title=""
For directly linked unlisted galleries use a link like. /gallery/13571493_k8EDp
No reason to expose the full path.
Code:

<!-- 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 -->
 
<div class="menu">
<ul>
<!-- First Main Menu Item -->
<li><a href="/" title="Mayukh Photography">Home</a></li>
<!-- Next Main Menu Item -->
<li><a class="drop" href="http://www.mayukh.smugmug.com/Art" title="Galleries">My Portfolio
    <!--[if gte IE 7]><!--></a><!--<![endif]-->
    <!--[if lte IE 6]><table><tr><td><![endif]-->
    <ul>
        <li><a href="/Art/Nature/13375855_z8o4g" title="My Portfolio">Nature/Landscapes</a></li>
        <li><a href="/Art/Cityscapes/13380099_gGuSa" title="My Portfolio">Cityscapes/Architecture</a></li>
        <li><a href="/Art/People/13380143_AE7zG" title="My Portfolio">People/Portraits</a></li>
        <li><a href="/Art/Abstracts/13380127_DX4VU" title="My Portfolio">Still Life/Abstract</a></li>
        <li><a href="/Art/Macro/13388971_f7uYP" title="My Portfolio">Micro World</a></li>
        <li><a href="#link" title="My Portfolio">Animal Kingdom</a></li>
    </ul> <!--[if lte IE 6]></td></tr></table></a><![endif]-->
</li>
<!-- Next Main Menu Item -->
<li><a href="#nopick" title="Contact me">Contact
    <!--[if gte IE 7]><!--></a><!--<![endif]-->
    <!--[if lte IE 6]><table><tr><td><![endif]-->
    <ul>
        <li><a href="mailto:mayukzone@gmail.com" title="Leave a Email">Email Me</a></li>
    </ul> <!--[if lte IE 6]></td></tr></table></a><![endif]-->
</li>
<!-- Next Main Menu Item -->
<li><a href="#nopick" title="Please sign My guestbook!">Guestbook
    <!--[if gte IE 7]><!--></a><!--<![endif]-->
    <!--[if lte IE 6]><table><tr><td><![endif]-->
    <ul>
        <li><a href="/gallery/13571493_k8EDp" title="write your feedback here">Comments &amp; Feedback</a></li>
    </ul> <!--[if lte IE 6]></td></tr></table></a><![endif]-->
</li>
<!-- Next Main Menu Item -->
<li><a href="#nopick" title="About the photographer">The Photographer
    <!--[if gte IE 7]><!--></a><!--<![endif]-->
    <!--[if lte IE 6]><table><tr><td><![endif]-->
    <ul>
        <li><a href="/gallery/13569301_2JSEo" title="About me">About Me</a></li>
    </ul> <!--[if lte IE 6]></td></tr></table></a><![endif]-->
</li>
<!-- Next Main Menu Item -->
</ul>
</div>



Hi allen , thanks for all your help :) .

Here i am back again looking for more help ... i have modified the website further since the time i posted the above post . Now the problem is although the menu has shifted to the right the flyouts are opening up and going beyond the margins .. Please check the screen shot for a better understaing .
And yes , i would be adding a logo banner later on which would be most probably be located at the extreme left ..opposite to the menubar.

My Website - www.mayukhphotography.com

Allen Sep-09-2010 05:18 AM

Quote:

Originally Posted by KellyJohnson (Post 1457037)
Hello,

I have tried a couple of things posted in this thread to solve my nav bar issues but they haven't worked. Here's what I'd like to do:

1. Position my nav bar up higher to the right of my logo

2. Make the background of the drop down boxes transparent so all you can see is the text.

3. Align all the text in the drop downs to the left

Thanks in advance for your help :-)
~Kelly

http://www.kellyjohnsonproducts.com

Before we get to your other questions lets position the banner and nav first.

See if you like this. Makes the banner and nav relative to each other and
positioned both static in center on one line.

Remove the logo/banner from Easy Customizer. The banner will now be defined in CSS.

Add #my_banner and change the .menu like this in your CSS.
Code:

#my_banner {
  position: relative;
  width: 273px;
  height: 127px;
  margin: 0 auto;      /* top/bottom R/L */
  left: -300px;
  background: url(http://www.kellyjohnsonproducts.com/photos/998389914_Q2Rrh-O.png) no-repeat;
}

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

Remove the red from your header
Code:

<div id="my_banner"> </div>

<div align="center">
<!-- Original code by Stu Nicholls of -->
... (SNIP) ...


Allen Sep-09-2010 05:22 AM

Quote:

Originally Posted by KellyJohnson (Post 1457037)
...
2. Make the background of the drop down boxes transparent so all you can see is the text.

3. Align all the text in the drop downs to the left
...

Change the red

Code:

      /* style the second level links */
.menu ul ul a, .menu ul ul a:visited {
  color:#8d6f6c;
  background:none;
  height:25px;
  line-height:25px;
  width:100px;
  text-align: left;
}


Allen Sep-09-2010 05:40 AM

Quote:

Originally Posted by mayukzone (Post 1457125)
Hi allen , thanks for all your help :) .

Here i am back again looking for more help ... i have modified the website further since the time i posted the above post . Now the problem is although the menu has shifted to the right the flyouts are opening up and going beyond the margins .. Please check the screen shot for a better understaing .
And yes , i would be adding a logo banner later on which would be most probably be located at the extreme left ..opposite to the menubar.

My Website - www.mayukhphotography.com

First, change your header nav html to this, fixes some errors.
Code:

<!-- 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 -->

<div class="menu">

<ul>
<li><a class="drop" href="h/" title="Mayukh Photography">Home
    <!--[if gte IE 7]><!--></a><!--<![endif]-->
    <!--[if lte IE 6]><table><tr><td><![endif]-->
    <ul>
        <li><a href="/" title="Mayukh Photography">Take me Home</a></li>
    </ul> <!--[if lte IE 6]></td></tr></table></a><![endif]-->
</li>

<li><a class="drop" href="#link" title="">PortFolio
    <!--[if gte IE 7]><!--></a><!--<![endif]-->
    <!--[if lte IE 6]><table><tr><td><![endif]-->
    <ul>
        <li><a class="drop" href="#link" title="">PLACES
            <!--[if gte IE 7]><!--></a><!--<![endif]-->
            <!--[if lte IE 6]><table><tr><td><![endif]-->
            <ul>
                <li><a href="/Art/Nature/13375855_z8o4g">Landscapes|Nature</a></li>
                <li><a href="/Art/Cityscapes/13380099_gGuSa">Cityscapes|Architecture</a></li> 
            </ul> <!--[if lte IE 6]></td></tr></table></a><![endif]-->
        </li>
        <li><a class="drop" href="#link" title="">FACES
            <!--[if gte IE 7]><!--></a><!--<![endif]-->
            <!--[if lte IE 6]><table><tr><td><![endif]-->
            <ul>
                <li><a href="/Art/People/13380143_AE7zG">People|Portraits</a></li>
            </ul> <!--[if lte IE 6]></td></tr></table></a><![endif]-->
        </li>
        <li><a class="drop" href="#link" title="">OTHER CASES
            <!--[if gte IE 7]><!--></a><!--<![endif]-->
            <!--[if lte IE 6]><table><tr><td><![endif]-->
            <ul>
                <li><a href="/Art/Abstracts/13380127_DX4VU">Abstract| Stills</a></li>
                <li><a href="#link">Animal Kingdom</a></li>
            </ul> <!--[if lte IE 6]></td></tr></table></a><![endif]-->
        </li>
    </ul> <!--[if lte IE 6]></td></tr></table></a><![endif]-->
</li>

<li><a class="drop" href="#link" title="">The Photographer
    <!--[if gte IE 7]><!--></a><!--<![endif]-->
    <!--[if lte IE 6]><table><tr><td><![endif]-->
    <ul>
        <li><a href="/gallery/13569301_2JSEo" title="">About Me</a></li>
        <li><a href="/gallery/13571493_k8EDp" title="Comments &amp; Feedback">GuestBook</a></li>
        <li><a href="mailto:mayukzone@gmail.com" title="Send me a mail">Contact Me</a></li>
    </ul> <!--[if lte IE 6]></td></tr></table></a><![endif]-->
</li>

</ul>

</div>  <!-- closes menu -->
<div class="spacer"></div>

See if this works better. Moves the nav in from the edge some. Flyouts pop out to the left.
Code:

/* style the outer div to give it width */
.menu {
z-index:99;
margin: 0 20px 0 auto; /* top R bottom L */
padding:10px 0px 10px 0px;
position:relative; /*Make the container moveable*/
width:330px;    /*Main bar total width*/
padding-bottom:10px; /*Padding between the bottom of your mainbar and the rest of your page */
}

/* position the third level flyout menu */
.menu ul ul ul{
left:-137px;
top:0;
width:125px;
}



Times are GMT -8.   It's 06:16 AM.
Page 7  of  63

Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.