• Gear
  • Shots
  • Photo Craft
  • Video
  • Wide Angle
  • Support
  • New Stuff
  • More
Support SmugMug Customization Dropdown Navbar help thread

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 #130 (Hot or Cold), Memol..

The next Dgrin Challenge DSS #131 (Music) is open for entries through June 24th, 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
Page 5  of  125
1 2 3 4 5 6 7 8 9 15 55 105 Last »
Old Jun-28-2010, 12:52 PM
#81
OWUnited is offline OWUnited
OneWorldUnitedPhotos LLC
Hey All,

I posted before, but I would like to use buttons instead of just the text for my nav bar. Currently I just have the basic CSS nav bar and I would just like to incorporate images.

Any help would be great.

www.owuphotos.com

Thank you
Old Jun-28-2010, 05:09 PM
#82
baikodaker is offline baikodaker
Big grins
Quote:
Originally Posted by Allen View Post
See if this html works better. One example of a common thing missing is in red.
Hi Allen,

same problem after updating the custom header.
__________________
bai
http://ronniearangali.com
Old Jun-28-2010, 09:14 PM
#83
Allen is offline Allen OP
"tweak 'til it squeaks"
Allen's Avatar
Quote:
Originally Posted by baikodaker View Post
Hi Allen,

same problem after updating the custom header.
It now works in IE8. What version browsers doesn't it work in?
Old Jun-28-2010, 10:10 PM
#84
baikodaker is offline baikodaker
Big grins
Quote:
Originally Posted by Allen View Post
It now works in IE8. What version browsers doesn't it work in?
i'm testing on IE 6.
thanks!

--- it ok now Allen.
i change this
/* another hack for IE5.5 */
* html .menu ul ul {
top:30px; ----> from 15 to 30
t\op:30px; /* IE gap between main bar and the dropdown items */ ----> from 15 to 30
}
__________________
bai
http://ronniearangali.com

Last edited by baikodaker; Jun-29-2010 at 09:00 AM.
Old Jun-29-2010, 06:47 AM
#85
smmokan is offline smmokan
Big grins
Allen- I deleted one of the Nav Bar items (Favorite Images), and want to center the others- how do I change the code to do that?

Thanks!

Quote:
Originally Posted by Allen View Post
See if you like this.
Add this to your header box on your customize page.
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="http://experienceplus.smugmug.com/Our%20Tours%20by%20Country">Our Tours- by Country
    <!--[if gte IE 7]><!--></a><!--<![endif]-->
    <!--[if lte IE 6]><table><tr><td><![endif]-->
    <ul>
        <li><a href="/Our-Tours-by-Country/Chile" title="">Chile</a></li>
        <li><a href="/Our-Tours-by-Country/Spain" title="">Spain</a></li>
        <li><a href="/Our-Tours-by-Country/Italy" title="">Italy</a></li> 
        <li><a href="/Our-Tours-by-Country/Germany" title="">Germany</a></li> 
        <li><a href="/Our-Tours-by-Country/France" title="">France</a></li> 
        <li><a href="/Our-Tours-by-Country/Greece" title="">Greece</a></li> 
        <li><a href="/Our-Tours-by-Country/Croatia" title="">Croatia</a></li> 
        <li><a href="/Our-Tours-by-Country/Argentina" title="">Argentina</a></li> 
        <li><a href="/Our-Tours-by-Country/Eastern Europe" title="">Eastern Europe</a></li> 
        <li><a href="/Our-Tours-by-Country/Costa Rica" title="">Costa Rica</a></li> 
    </ul> <!--[if lte IE 6]></td></tr></table></a><![endif]-->
</li>
<li>&nbsp;|&nbsp;</li>
<li><a href="http://experienceplus.smugmug.com/Favorite%20Images">Favorite Images</a></li>
<li>&nbsp;|&nbsp;</li>
<li><a href="http://www.experienceplus.com">Return Home</a></li>

</ul>
</div>  <!-- closes menu -->
<!-- End Navbar Code -->
Add this to your 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:14pt;
   text-decoration:none;
   color:#F4F7F1;
   background:#bbb;
   font-family: verdana;
   width:auto;            /* Defines the main box dimensions. */
   height:25px;           /*How tall your cells are */
   line-height:20px;      /*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:#bbb;}  /* if 3rd level exists */

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

      /* 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:15px; 
   width:150px;  /* 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 */

      /* 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:#F4F7F1;
   background:#bbb;
   height:25px; 
   line-height:25px; 
   width:150px;
}

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

      /* 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:#A4A4A4;
   background:#bbb;
}
      /* main hover */
.menu :hover > a, .menu ul ul :hover > a {
   color:#A4A4A4;
   background:#bbb;
}
      /* make the 2nd level visible when hover on 1st level list OR link */
.menu ul :hover ul {visibility:visible;}

/* End Navbar Code */
Old Jun-29-2010, 08:52 AM
#86
Allen is offline Allen OP
"tweak 'til it squeaks"
Allen's Avatar
Quote:
Originally Posted by smmokan View Post
Allen- I deleted one of the Nav Bar items (Favorite Images), and want to center the others- how do I change the code to do that?

Thanks!
Looks centered here, get it solved? Minimize the width in the first .menu rule
until it doesn't wrap to two lines will center it.
Old Jun-30-2010, 04:26 AM
#87
rharris is offline rharris
Big grins
I'm having some trouble with this. I've followed the advise on the first page, but it doesn't seem to have effect. The first issue is alignment - the menu needs to be on the right side, at the top, and the banner on the left. The menu just seems to stick on in the middle though, I can't get it to move.

The second issue is the 'about me' and 'contact' links. They seem to be aligning seperately and are a different colour.

I would just like it all at the top, on the right, the same colour, but it doesn't seem to want to do that :(. Any advise?

Very greatful for this dropdown option btw. It's something I've wanted for a few months and just noticed it on here yesterday whilst searching for something else. The actual drop down works fine, it is just alignment/positioning.

Thanks for any advise!

www.rharris-images.com
__________________
www.rharris.smugmug.com
Old Jun-30-2010, 06:04 AM
#88
Allen is offline Allen OP
"tweak 'til it squeaks"
Allen's Avatar
Quote:
Originally Posted by rharris View Post
I'm having some trouble with this. I've followed the advise on the first page, but it doesn't seem to have effect. The first issue is alignment - the menu needs to be on the right side, at the top, and the banner on the left. The menu just seems to stick on in the middle though, I can't get it to move.

The second issue is the 'about me' and 'contact' links. They seem to be aligning seperately and are a different colour.

I would just like it all at the top, on the right, the same colour, but it doesn't seem to want to do that :(. Any advise?

Very greatful for this dropdown option btw. It's something I've wanted for a few months and just noticed it on here yesterday whilst searching for something else. The actual drop down works fine, it is just alignment/positioning.

Thanks for any advise!

www.rharris-images.com
Replace your header with this, fixes a bunch of errors.
Code:
<div class="menu">
<ul>
<li><a class="drop" href="/Art" title="">Art
    <!--[if gte IE 7]><!--></a><!--<![endif]-->
    <!--[if lte IE 6]><table><tr><td><![endif]-->
    <ul>
        <li><a href="/Art/Landscapes/8835835_z2HSq" title="">Landscape</a></li>
        <li><a href="/Art/dArt/8846680_PpcNq" title="">Digital Art</a></li> 
        <li><a href="/Art/Still-Life/8784524_HFzT6" title="">Still Life</a></li> 
    </ul> <!--[if lte IE 6]></td></tr></table></a><![endif]-->
</li>

<li><a class="drop" href="/Wedding-Photography" title="">Weddings
    <!--[if gte IE 7]><!--></a><!--<![endif]-->
    <!--[if lte IE 6]><table><tr><td><![endif]-->
    <ul> 
        <li><a href="/Wedding-Photography/Your-Wedding/11673998_2N2BS" title="">Your Wedding</a></li>
        <li><a href="/Wedding-Photography/Shropshire/11406156_Xd6wv" title="">Sample Gallery</a></li>
        <li><a href="/Wedding-Photography/ShropshireWeddings/11451300_6o2CA" title="">Price Packages</a></li>
        <li><a href="/Wedding-Photography/Testimonials/11681955_hobgs" title="">Testimonials</a></li>
    </ul> <!--[if lte IE 6]></td></tr></table></a><![endif]-->
</li>

<li><a class="drop" href="/Lens-Conversion/Rokkor-to-Sony" title="">Lens Services
    <!--[if gte IE 7]><!--></a><!--<![endif]-->
    <!--[if lte IE 6]><table><tr><td><![endif]-->
    <ul>
        <li><a href="/Lens-Conversion/Rokkor-to-Sony/Items-and-pricing/11433742_5K2xx" title="">Rokkor Digital</a></li>
        <li><a href="/Lens-Conversion/Rokkor-to-Sony/Samyang-chipped-mount/12501168_kKCfg" title="">Samyang Chipping</a></li>
        <li><a href="/Lens-Conversion/Rokkor-to-Sony/Nikon-to-Sony/12053610_gCegu" title="">Sony Shift</a></li>
        <li><a href="/Lens-Conversion/Rokkor-to-Sony/Testimonials/11855175_cHYYp" title="">Testimonials</a></li>
    </ul> <!--[if lte IE 6]></td></tr></table></a><![endif]-->
</li>

<li><a href="/Other/About-me/9379986_4LHzT" title="Info on photographer Richard Harris">About me</a></li>
<li><a href="http://rharris.wufoo.com/forms/z7x4z5/" title="Get in touch with me!">Contact</a></li>
</ul>
</div>
CSS change
Code:
      /* style the outer div to give it width */
.menu {
   z-index:99;
   margin: 30px auto 20px;  /* top R/L bottom */
   position:relative;    /* Make the container moveable */
   width:780px;          /* Main bar total width, minimize to center */
}
Old Jun-30-2010, 06:35 AM
#89
rharris is offline rharris
Big grins
Allen, thats excellent, thank you! Everything is together now. Any tips for aligning it to the right though?
__________________
www.rharris.smugmug.com
Old Jun-30-2010, 06:49 AM
#90
Allen is offline Allen OP
"tweak 'til it squeaks"
Allen's Avatar
Quote:
Originally Posted by rharris View Post
Allen, thats excellent, thank you! Everything is together now. Any tips for aligning it to the right though?
Change this CSS rule like this.
Code:
      /* style the outer div to give it width */
.menu {
   z-index:99;
   float: right;
   margin: 20px auto 20px;  /* top R/L bottom */
   width:640px;          /* Main bar total width, minimize to center */
}
Old Jun-30-2010, 07:39 AM
#91
rharris is offline rharris
Big grins
Perfect! Thanks for your time Allen :)
__________________
www.rharris.smugmug.com
Old Jun-30-2010, 11:49 AM
#92
betser is offline betser
Big grins
nav bar
I'am using this nav bar on my site www.tombetserphotography.com is there a way to make the nav bar have rounded corners instead of square corners.
Old Jun-30-2010, 05:53 PM
#93
smmokan is offline smmokan
Big grins
Quote:
Originally Posted by Allen View Post
Looks centered here, get it solved? Minimize the width in the first .menu rule
until it doesn't wrap to two lines will center it.
OK, I have it aligned so that it looks great in Firefox. However, when I test it in IE6, it shows on two lines. How do I fix that?



Thanks!!!
Old Jul-01-2010, 02:10 AM
#94
rharris is offline rharris
Big grins
Quote:
Originally Posted by betser View Post
I'am using this nav bar on my site www.tombetserphotography.com is there a way to make the nav bar have rounded corners instead of square corners.
Ditto! Was just about to ask that. Would really love to have the corners rounded instead of square.
__________________
www.rharris.smugmug.com
Old Jul-01-2010, 05:30 AM
#95
Allen is offline Allen OP
"tweak 'til it squeaks"
Allen's Avatar
Quote:
Originally Posted by smmokan View Post
OK, I have it aligned so that it looks great in Firefox. However, when I test it in IE6, it shows on two lines. How do I fix that?



Thanks!!!
Increase the width in this a little at a time until it doesn't wrap.
630 > 640 > 650 > ...
Code:
      /* 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 */
}
Old Jul-01-2010, 05:34 AM
#96
Allen is offline Allen OP
"tweak 'til it squeaks"
Allen's Avatar
Quote:
Originally Posted by rharris View Post
Ditto! Was just about to ask that. Would really love to have the corners rounded instead of square.
There is a way that works in Firefox but not in IE browsers.

btw, might increase the top in this so the drops are below the main.
Code:
      /* 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:35px;
   left:0; 
   width:130px;  /* Size of the daughter cells */
}
Old Jul-01-2010, 06:24 AM
#97
smmokan is offline smmokan
Big grins
Quote:
Originally Posted by Allen View Post
Increase the width in this a little at a time until it doesn't wrap.
630 > 640 > 650 > ...
Code:
      /* 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 */
}
But if I do that, it will off-center the Firefox version.... is it Robbing Peter to Pay Paul here?
Old Jul-01-2010, 07:53 AM
#98
Allen is offline Allen OP
"tweak 'til it squeaks"
Allen's Avatar
Quote:
Originally Posted by smmokan View Post
But if I do that, it will off-center the Firefox version.... is it Robbing Peter to Pay Paul here?
It won't take much of an increase, a few pixels, and probably will not be very
noticeable.
Old Jul-01-2010, 09:18 AM
#99
betser is offline betser
Big grins
Quote:
Originally Posted by betser View Post
I'am using this nav bar on my site www.tombetserphotography.com is there a way to make the nav bar have rounded corners instead of square corners.
what I need to do is to have round corners on each of the drop down menu's. instead of them having square corners.
Old Jul-01-2010, 08:44 PM
#100
smmokan is offline smmokan
Big grins
Quote:
Originally Posted by Allen View Post
It won't take much of an increase, a few pixels, and probably will not be very
noticeable.
No luck. I have it set at 430 pixels right now, and that centers the drop-down in Firefox. I went up to 500 pixels, and when I did that it made it extremely off-centered in Firefox and yet it still didn't fix the problem in IE6. Any other suggestions?
Page 5  of  125
1 2 3 4 5 6 7 8 9 15 55 105 Last »
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

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