View Full Version : Almost there, help with dropdown navbar
slipkid
Nov-12-2008, 09:20 AM
I am close to the look I want for my page. I want to add dropdown menu items to my navbar. Every time I try adding the code (tried many times) I mess up something else. Just for starters I want a dropdown item to select my galleries. If I can get this to work I can then add the code to finish my page. This site has been great.
Thanks in advance
http://slipkid.smugmug.com
wbphotos
Nov-12-2008, 11:15 AM
I am close to the look I want for my page. I want to add dropdown menu items to my navbar. Every time I try adding the code (tried many times) I mess up something else. Just for starters I want a dropdown item to select my galleries. If I can get this to work I can then add the code to finish my page. This site has been great.
Thanks in advance
http://slipkid.smugmug.com
i have a basic java script drop down. i am sure i can change it to use as links for a gallery...would u be interested?
slipkid
Nov-12-2008, 11:55 AM
Show me what you have, maybe I can use it.
wbphotos
Nov-12-2008, 12:05 PM
Show me what you have, maybe I can use it.
go here... i am still working on it. the links do not work.
http://whitebirdphotography.com/orders.php
slipkid
Nov-12-2008, 12:13 PM
go here... i am still working on it. the links do not work.
http://whitebirdphotography.com/orders.php
It looks good so far. I was looking for my navbar items to dropdown, not the type of dropdown that you have.
wbphotos
Nov-12-2008, 12:24 PM
It looks good so far. I was looking for my navbar items to dropdown, not the type of dropdown that you have.
i can make you one in dreamweaver.
slipkid
Nov-12-2008, 12:39 PM
i can make you one in dreamweaver.
I will keep working at it, I have something going right now.
Thanks
slipkid
Nov-12-2008, 06:08 PM
I now have my navbar dropdowns working. Just two things left:
1) I have a pointer (<) just below my banner, I can't find in the code where to get rid of it.
2) I want to have my navbar to the right of my banner, on the same line
http://slipkid.smugmug.com
Allen
Nov-12-2008, 09:33 PM
I now have my navbar dropdowns working. Just two things left:
1) I have a pointer (<) just below my banner, I can't find in the code where to get rid of it.
2) I want to have my navbar to the right of my banner, on the same line
http://slipkid.smugmug.com
Remove the red from your header. The extra <ul> is also messing your page.
...
</div>
<ul>
<<div class="menu">
<ul>
<li><a href="http://slipkid.smugmug.com">Home</a></li>
...
You are also missing the closing </div> at the end of your nav html.
...
<li><a href="http://slipkid.smugmug.com">Future</a></li>
</ul> <!--[if lte IE 6]></td></tr></table></a><![endif]-->
</div>
slipkid
Nov-13-2008, 04:34 AM
Remove the red from your header. The extra <ul> is also messing your page.
...
</div>
<ul>
<<div class="menu">
<ul>
<li><a href="http://slipkid.smugmug.com">Home</a></li>
I found the extra "<ul>" but I don't see the "<" in my code. I still see the "<" symbol bellow my banner. Also how can I align my banner and navbar on the same line?
Thanks Again
Allen
Nov-13-2008, 07:45 AM
I found the extra "<ul>" but I don't see the "<" in my code. I still see the "<" symbol bellow my banner. Also how can I align my banner and navbar on the same line?
Thanks Again
Copy the bold and paste over these parts of you header. Added comment tags around
the line because the #my_header CSS adds the line.
<div id="my_header">
<div id="my_banner"> </div>
<!-- <hr color="#00c5cd"> -->
<div class="menu">
<ul>
...
...
...
</ul> <!--></td></tr></table></a><![endif]-->
</div> <!-- closes menu -->
</div> <!-- closes my_header -->
Change these three to look like this.
#my_header {
height: 33px;
border-bottom: 3px solid #B3A1A1;
margin: 0 30px 15px; /* top right/left bottom*/
padding: 0 20px;
}
#my_banner {
width: 300px;
height: 30px;
margin: 5px 0; /* top/bottom right/left */
background: url(http://slipkid.smugmug.com/photos/415107150_ru5Vw-L.gif) no-repeat;
}
/* Common Styling */
.menu {
float: right;
margin: -43px 0; /* top/bottom right/left */
display: block;
z-index: 99;
padding: 1px 1px 1px 1px; /* spacing around menu - top right bottom left */
height: 20px; /* menu container (div .menu) */
width: 555px; /* width of menu - minimize this until doesn't wrap to two lines - too large effects centering */
}
[I]tweak the bold to align drop and flyout for Firefox
DD = dropdown FO = flyout FF = Firefox
.menu ul li:hover ul {
display: block;
position: absolute !important; /* ***** Carbonite fix ***** */
top: -6px; /* FF DD up down */
margin-top: 17px; /* FF main mouse active vertical */
left: -10px; /* FF DD right left */
width: 104px; /* unknown */
}
.menu ul li:hover ul li:hover ul {
display: block;
position: absolute;
left: 92px; /* FF FO right left */
top: -28px; /* FF FO up down */
width: 125px; /* FF FO box width */
}
In the IE section tweak the bold to align drop and flyout for IE
.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 */
margin-top: 7px; /* DD container up down */
left: 0px; /* DD right left */
}
.menu ul li a:hover ul li a:hover ul {
display: block;
position: absolute;
top: -22px; /* FO up down */
color: #000000; /* unknown */
left: 147px; /* FO right left */
}
slipkid
Nov-13-2008, 01:24 PM
Thanks to everyone.................it looks just fine now.
TeeWayne
Jun-17-2010, 06:15 PM
Allen: You seem to be the resident expert on this stuff. I have successfully uploaded a custom banner, but my Nav Bar is above the banner. This is what I have the the apropriate sections:
in CSS
#my_banner {
width: 750px;
height: 150px;
margin: 0 auto;
background: url(http://www.teewayne.com/Other/Background-pics/TeeWayneSmugmugLogo/903592584_MjQFq-O.jpg) no-repeat;
}
In Custom Header
<div id="my_banner"> </div>
What do I need to change to get my Nav bar to sho below my custom banner?:dunno
Any help you could provide would be greatly appreciated.
Thanks and take care.
max:P
Jun-21-2010, 01:32 PM
I've been trying to get the text in my nav bar to center up within the image button I created of 125px in width per button.
For some reason all the image buttons are getting cropped according to the size of the text.
This is the code i've been playing around with for DAYS on in. :bash
#navcontainer
{
margin: 0px;
padding: 0px;
}
#navcontainer ul {
margin: 0;
padding: 0;
list-style-type: none;
text-align: center;
}
#navcontainer ul li {
margin: 0px 0px 125px 0px;
display: inline;
}
#navcontainer ul li a {
text-decoration: none;
background: url(http://www.maximilianimaging.com/pho...06_zoatY-O.png (http://www.maximilianimaging.com/photos/907868506_zoatY-O.png))
no-repeat;
height: 25px;
width: 100px;
margin: 10px;
padding-top: 4px;
padding-right: 10px;
padding-bottom: 4px;
padding-left: 10px;
text-align: center;
color: #ffffff;
}
#navcontainer li a:hover{
background: url(http://www.maximilianimaging.com/pho...60_SAsrc-O.png (http://www.maximilianimaging.com/photos/907610260_SAsrc-O.png))
no-repeat;
color: #c00000;
}
Someone please help me before I end it all. :hang
I know I'm a big drama queen!!!
Thank you guys for any advice you can give.
Max
http://www.maximilianimaging.com/
Allen
Jun-21-2010, 09:04 PM
This is the third thread this duplicat post is in, please don't post in multiple places.
max:P
Jun-22-2010, 09:11 AM
This is the third thread this duplicat post is in, please don't post in multiple places.
Oh Gosh!!!!
I am so very sorry, Allen. It will never happen again.:cry
This is the first time I've posted on here and wasn't sure where exactly to post my question.:dunno
That being said, should I delete it from here and try to find the appropriate thread to post it on? :deal
If so, could you point me in the right direction?
Thank you for all the great work you guys do. :clap
Max
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.