|
|
Thread Tools | Display Modes |
|
#2181
|
||
|
Beginner grinner
|
Quote:
|
|
|
|
||
|
#2182
|
|
|
Central Florida
|
Centering Drop Down Nav
Having some trouble with centering the nav bar. Just started working with this drop down nav bar.
Any info on how to center would be great. I have tried several things, but no luck. Mike |
|
|
|
|
#2183
|
||
|
"tweak 'til it squeaks"
|
Quote:
Code:
/* 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:200px; /* Main bar total width, minimize to not wrap to two lines*/
}
__________________
Al My Website my Blog Mozilla Firefox Web Developer Firebug Customization FAQ Banner/Navbar/Slideshow Tutor Last edited by Allen; Sep-16-2012 at 02:30 PM. |
|
|
|
||
|
#2184
|
||
|
Central Florida
|
That's it Thanks!
Quote:
Mike |
|
|
|
||
|
#2185
|
|
|
Designer Photographer
|
Adding new Category Headings...
Hello,
I tried to add two additional category headings and they appeared on two staggered lines below the original menu. Can someone please show me how to adjust my settings to allow them to be on the same line as the others. Design Note: I am fine with raising the logo (can make it smaller) so the menu categories run under the logo. |
|
|
|
|
#2186
|
||
|
"tweak 'til it squeaks"
|
Quote:
Replace your whole header with this. Fixes a bunch of errors. Code:
<div id="my_banner"></div> <div class="menu"> <ul> <li><a href="/" title="">HOME</a></li> <li><a href="/NEW-UNTITLED-PROJECT/21027034_GXm3x">PORTRAIT PROJECT</a></li> <li><a href="/PORTRAITS/14638527_Qmgpv3">STUDIO PORTRAITS</a></li> <li><a href="/INTERESTINGPEOPLE/15182219_MPdDdJ">INTERESTING PEOPLE</a></li> <li><a href="/LANDSCAPE/15313653_d8bRMC">PLACES</a></li> <li><a href="/OUTSIDE THE BOX/21163068_r4Rhs9">OUTSIDE THE BOX</a></li> <li><a href="/gallery/15352911_xiEMU">CONTACT ME</a></li> </ul> </div> <!-- closes menu --> <!-- End Navbar Code --> <div style="clear: both;"></div> Code:
/* style the outer div to give it width */
.menu {
left: 150px;
top: -10px;
z-index:99;
margin: 0 auto 20px; /* top R/L bottom */
position:relative; /* Make the container moveable */
width: 900px; /* Main bar total width, minimize to center */
}
__________________
Al My Website my Blog Mozilla Firefox Web Developer Firebug Customization FAQ Banner/Navbar/Slideshow Tutor |
|
|
|
||
|
#2187
|
||
|
Designer Photographer
|
Quote:
|
|
|
|
||
|
#2188
|
|
|
Big grins
|
Having trouble can you help?
Dear Allen or anyone,
After a whole day I can't see where I'm going wrong. I've deleted and started twice, still no joy. ![]() I think there is a bit of code I need for the drops and eventually the flyouts to go over the bio slideshow and go underneath each other. Also, where on earth do I change the code to center the navbar? I'm @ www.grahamgarner.co Manythanks G |
|
|
|
|
#2189
|
||
|
"tweak 'til it squeaks"
|
Quote:
Code:
.menu a:hover, .menu :hover > a {
color:white;
background:black;
}
/* a hack so that IE5.5 faulty box model is corrected */
__________________
Al My Website my Blog Mozilla Firefox Web Developer Firebug Customization FAQ Banner/Navbar/Slideshow Tutor |
|
|
|
||
|
#2190
|
|
|
Big grins
|
Working but can't tweek for safari and firefox
Hi Allen
Many thanks for putting me right. I'm not sure what I'm doing wrong in the this part of the code? It works in IE, when the cursor lands on the 3rd tier and goes pink but, for Firefox and safari I think it's defaulting to black? This is the code in level 3 } .menu ul ul ul li a {color:gray;} .menu ul ul ul li a:hover {color:black;} /* style the third level background */ .menu ul ul ul a, .menu ul ul ul a:visited {background:yellow;} /* not FF */ /* style the third level hover */ .menu ul ul ul a:hover {background:red;} .menu ul ul ul :hover > a {background:pink;} /* 3rd (w/o 4th) 4th hover */ /* style the third level links */ .menu ul ul ul a, .menu ul ul ul a:visited { color:gray; /* hover 2nd > 3rd & 4th */ background:black; /* hover 3rd > 4th */ height:20px; line-height:20px; width:150px; } Also, (if possible) is there a bit of code to make the wording in level 2 justify left in line with the nav wording? the boxes are fine. ie the nav line Exhibitions and Commissions Exhibitions (the 2nd tier) I hope you have time to have a look, thank you for your time so far G Last edited by GrahamGarner; Sep-26-2012 at 04:44 AM. Reason: Add my link www.grahamgarner.co |
|
|
|
|
#2191
|
||
|
"tweak 'til it squeaks"
|
Quote:
wrap to two lines. Code:
.menu {
z-index:99;
position:relative; /* Make the container moveable */
margin: 0 auto 20px; /* top R/L bottom */
width:1050px; /* Main bar total width, minimize to not wrap to two lines*/
}
/* style the second level links */
.menu ul ul a, .menu ul ul a:visited {
color:white;
background:black;
height:20px;
line-height:20px;
width:150px;
text-align:left;
}
/* position the third level flyout menu */
.menu ul ul ul {
left:170px;
top:0;
width:150px;
height:auto;
}
.menu ul ul ul li a {color:white;}
.menu ul ul ul li a:hover {color:white}
/* style the third level background */
.menu ul ul ul a, .menu ul ul ul a:visited {background:black;} /* not FF */
/* style the third level hover */
.menu ul ul ul a:hover {background:gray;}
.menu ul ul ul :hover > a {background:gray;} /* 3rd (w/o 4th) 4th hover */
__________________
Al My Website my Blog Mozilla Firefox Web Developer Firebug Customization FAQ Banner/Navbar/Slideshow Tutor |
|
|
|
||
|
#2192
|
||
|
Big grins
|
I've put in the revised code, colour still different on formats
Quote:
Many thanks for the code. What I would like the colors to be when you hover on Exhibitions the 3rd level will appear Background Black and Wording colour grey When you hover on the 3rd tier ie Blackall Studios background goes grey and the wording black. At present Safari is background black wording grey (which is fine) on the 3rd tier Black, white On Firefox & IE Black, white then grey, white Any ideas? ![]() Lastly, is there a part of your code some where which changes the width of the drop boxes? I want them to be the same size but, as large as the longest word plus a little padding on the right the same as now on the left. I hope this makes sense? Many thanks |
|
|
|
||
|
#2193
|
||
|
"tweak 'til it squeaks"
|
Quote:
Code:
.menu a:hover, .menu :hover > a {
color:#888;
background:white;
}
Code:
/* 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:150px; /* Size of the daughter cells */
}
/* style the second level links */
.menu ul ul a, .menu ul ul a:visited {
color:white;
background:black;
height:20px;
line-height:20px;
width:150px;
text-align:left;
}
require adding class names to the <ul> in the html so the CSS could format each. When adjusting the drop width the next level has to be moved over to touch the new drop width. Code:
/* position the third level flyout menu */
.menu ul ul ul {
left:170px;
top:0;
width:150px;
height:auto;
}
Code:
.gallery_24557930 .slideshowButton,
.gallery_24557930 #albumNav_bottom,
.gallery_24557930 #albumNav_top {display:none;}
__________________
Al My Website my Blog Mozilla Firefox Web Developer Firebug Customization FAQ Banner/Navbar/Slideshow Tutor |
|
|
|
||
|
#2194
|
|
|
Big grins
|
I think I have some extra Stuff!!!
Allen,
I have tried multiple suggestions from the posts above to center the new drop down nav bar (trying to tweak it to the center and up and to make it quit hiding behind the photos). I think I have some extra code in there preventing me from achieving my goal.... I almost got it. Is there a way to embed it into my banner? What I really want to do is replace the bottom portion of my banner with the navigation bar (the engagements-weddings-blablabla portion) with something functional. Here is the site... http://www.garrywilliamsphotography.com/ |
|
|
|
|
#2195
|
||
|
Big grins
|
Many thanks Allen
Quote:
Many thanks Allen it appears to be playing ball
|
|
|
|
||
|
#2196
|
||
|
"tweak 'til it squeaks"
|
Quote:
Code:
/************........***************************/ /* CSS Dropdown Nav Bar */ /* Original code by Stu Nicholls of */
__________________
Al My Website my Blog Mozilla Firefox Web Developer Firebug Customization FAQ Banner/Navbar/Slideshow Tutor |
|
|
|
||
|
#2197
|
||
|
Big grins
|
Quote:
4+ hours... for a slash..... Thank You, you are a true hero! To continue... 1. Is there a way to embed my Navbar into my banner? I want to replace the bottom portion of my banner with the navigation bar (the engagements-weddings-blablabla portion out--navbar in.... ((I have already removed the blablabla... in a new banner located here; http://www.garrywilliamsphotography....-46K74Bj-L.png)) I Ultimately I would like to be able to move the banner and Nav bar as a unit should I decide it is necessary. 2. I would like to do a cleanup of all my code. I plan to migrate the current slide show to jfriends stretchy slideshow and load a splash image and want to start with just what I need in case that goes south. Could you please look it over and tell me what code is not needed and can be removed? 3. Lastly. and honestly I haven't done any searches yet, but I need to put some documents in the "INFO" nav drop downs-- Artist statement- artist bio and guarantee. Is it possible to put word or pdf documents on my site. I dont remember seeing any on others' sites. Thanks again!!! |
|
|
|
||
|
#2198
|
||
|
Big grins
|
IE7/8/9 issues with nav bar and continuation of assistance
Quote:
Allen- Anybody??? Last edited by Allen; Oct-02-2012 at 07:19 AM. |
|
|
|
||
|
#2199
|
||
|
"tweak 'til it squeaks"
|
Quote:
Some browsers do not like a background set to "none". Go down through the .menu CSS and change all the backgrounds to this. It applies a very transparent background that's not visible. background: rgba(255, 255, 255, .0001);
__________________
Al My Website my Blog Mozilla Firefox Web Developer Firebug Customization FAQ Banner/Navbar/Slideshow Tutor |
|
|
|
||
|
#2200
|
||
|
Big grins
|
Quote:
Thanks Allen I will give that a try. |
|
|
|
||
| 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 | |
|
|