This is a discussion on "Positioning Spry Menu Bar, etc." within the Web Page Design section. This forum, and the thread "Positioning Spry Menu Bar, etc. are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
Positioning Spry Menu Bar, etc.
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
Positioning Spry Menu Bar, etc.
(First time using DW, bear with me ...)
I'm trying to modify my spry menu bar so it integrates with my page like this: nav2mh3.jpg But right now it looks like this: nav3wy2.jpg The menu bar is in a table cell, along with a sliced 800 x 25 px .gif (the gradiant image right below it) which I'd like the menu bar to be on top of. I'm stuck on how do the following, and I've searched everywhere: 1. What CSS property to I chage to align the menu bar to the right, just so it aligns with the right edge of the large content box below it? 2. How can I make the menu bar be on top of the 800 x 25 px .gif (currently right below it, in the same table cell). I tried to delete the .gif from the table and set it instead as a background image of the Spry Menu, but that didn't work (I may have set the wrong CSS property.) 3. How do I decrease the height of the pipes (actually, solid right borders) which separate the menu items? (see first image for desired look). I tried to change the height and padding properties for Box in ul.MenuBarHorizontal a. I changed the height from "auto" to something like 7 px (or should I use points? ems?). That decreased the height but the words were no longer centered vertically within the menu (too close to the bottom border), so I changed the Box padding from 0.5 em 0.75 em to 0.3 em 0.75 em but that moved the bottom of the box closer to the text. (I also tried 0.5 0.75em 0.5em but that made it worse.) 4. How can I not show the last pipe (after CONTACT). Thank you for any pointers. There are so many css properties for the spry menu and I'm having trouble finding good documentation about what each one does. Last edited by karinne; Sep 10th, 2007 at 13:59. Reason: Please attach big images! |
|
|
|
#2
|
|||
|
|||
|
Re: Positioning Spry Menu Bar, etc.
I just somehow managed to screw it up further and the menu is now vertical. I can't figure out what I changed and clicking undo didn't restore it.
![]() |
|
#3
|
|||
|
|||
|
Re: Positioning Spry Menu Bar, etc.
Do you have a development site with this so we can work on it for you. It'd be a lot easier to just open up my web dev toolbar and slap some css changes and get it all squared away for you.
(if not, you'll need to set the LI to either display: inline; or float: left; depending on your situation. Then you'll likely need to use position: absolute; and adjust the top and left values to position it where you want it. Keep in mind though this is just speculation since I don't know how you've coded it) - James
Last Blog Entry: Whats in a name? (Feb 20th, 2008)
|
|
#4
|
|||
|
|||
|
Re: Positioning Spry Menu Bar, etc.
I gave you some code in your other thread which should get "almost" the desired result ...
http://www.webforumz.com/graphics-fo...htm#post262505 Quote:
|
|
#5
|
|||
|
|||
|
Re: Positioning Spry Menu Bar, etc.
Quote:
Now, just to verify some of my learning: This code defines the (overall?) properties for the "navigation" div id listed in the HTML code:
Thank you again for your help. |
|
#6
|
|||
|
|||
|
Re: Positioning Spry Menu Bar, etc.
I took a tip from Alistapart's Taming List article and tried to get rid of the right border on the last list item (CONTACT). THe changes I made had no obvious impact:
I edited the navigation div like so:
|
|
#7
|
|||
|
|||
|
Re: Positioning Spry Menu Bar, etc.
You need this instead:
|
|
#8
|
|||
|
|||
|
Re: Positioning Spry Menu Bar, etc.
Quote:
The relevant code looks like this:
|
|
#9
|
|||
|
|||
|
Re: Positioning Spry Menu Bar, etc.
For a start, you'd better check your HTML is valid. I have no idea whether <div>s are allowed inside <table>s (I never use <table> for layout). It seems rather an odd thing to do.
To move #navigation a few pixels left, try:
|
![]() |
| Tags |
| spry menu, positioning, height |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Positioning problems with horizontal drop down menu | dreamabstract | Web Page Design | 2 | Jun 16th, 2008 13:09 |
| Spry works in FF - not in IE | overkil6 | JavaScript Forum | 1 | Apr 15th, 2008 16:58 |
| [SOLVED] Spry password confirmation widget in DW CS3 | grandadbob | Scripts and Online Services | 5 | Nov 30th, 2007 19:34 |
| Spry Menu Bar, Adding Submenu Border and Submenu semi-Transparent background | ravennaweb | Web Page Design | 2 | Sep 24th, 2007 15:27 |
| menu / layout positioning issue in IE | Pixelate | Web Page Design | 2 | May 9th, 2006 14:15 |