Web Hosting Talk







View Full Version : Dreamweaver CS4 Spry Menu Bar


sekao
10-28-2009, 04:16 PM
Hello everyone.

I was designing one website and decided to mess around with the spry menu bar. I wanted it to be wider so that it may seem in the whole browser screen, so i started messing with the rules of the Sprymenubarhorizon.css.

But now i don't know what i did but if I try to insert an horizontal menu bar it always comes up vertical.. It don't matter if i change some of the properties of the width or height in the box tab.. still it is always vertical.

I tried to see if I can set everything to default but no help.
I even reinstalled dreamweaver and still the spry menu bar is always vertical.

I tried to add a vertical one and it adds it with no problem, it's just the horizontal the problem. even now if I open a website that has a horizontal menu bar, now it comes as vertical. That's why i think i must have changed a permannent setting by mistake.

Is there anyway I can set dreamweaver to default again? or anyway i can put my menu bars back to normal.

I hope this is not so specific for web design forum..

Cheers and thank you

iloveunicorns
10-28-2009, 06:24 PM
what do you mean by wider the height or the width

here is a link
http://help.adobe.com/en_US/Dreamweaver/10.0_Using/WSEE4C0148-A6F4-4bf5-9DEF-CE06AB026214a.html

that might help you.

sekao
10-28-2009, 11:24 PM
i've tried all that already. i've tried changing all rules but still it looks vertical rather than horizontal.

I think it may be a bug or something but still i reinstalled it already but no luck.

any other suggestion?

iloveunicorns
10-28-2009, 11:27 PM
can you paste the code from the css file here so i can look over the code

sekao
10-29-2009, 01:34 AM
this is the code

-------------
/* SpryMenuBarHorizontal.css - version 0.6 - Spry Pre-Release 1.6.1 */

/* Copyright (c) 2006. Adobe Systems Incorporated. All rights reserved. */

/*******************************************************************************

LAYOUT INFORMATION: describes box model, positioning, z-order

*******************************************************************************/

/* The outermost container of the Menu Bar, an auto width box with no margin or padding */
ul.MenuBarHorizontal
{
margin: 0;
padding: 0;
list-style-type: disc;
font-size: 100%;
cursor: right;
width: auto;
height: auto;
z-index: auto;
float: none;
}
div {
background-color: #0C9;
width: 90%;
}

/* Set the active Menu Bar with this class, currently setting z-index to accomodate IE rendering bug: http://therealcrisp.xs4all.nl/meuk/IE-zindexbug.html */
ul.MenuBarActive
{
z-index: 100;
}
/* Menu item containers, position children relative to this container and are a fixed width */
ul.MenuBarHorizontal li
{
margin: 0;
padding: 0;
list-style-type: none;
font-size: 100%;
position: relative;
text-align: left;
cursor: pointer;
width: 90px;
float: none;
height: 5%;
}
/* Submenus should appear below their parent (top: 0) with a higher z-index, but they are initially off the left side of the screen (-1000em) */
ul.MenuBarHorizontal ul
{
margin: 0;
padding: 0;
list-style-type: none;
font-size: 100%;
z-index: 1020;
cursor: default;
width: auto;
position: absolute;
left: -1000em;
float: none;
height: auto;
}
/* Submenu that is showing with class designation MenuBarSubmenuVisible, we set left to auto so it comes onto the screen below its parent menu item */
ul.MenuBarHorizontal ul.MenuBarSubmenuVisible
{
left: auto;
}
/* Menu item containers are same fixed width as parent */
ul.MenuBarHorizontal ul li
{
width: 8.2em;
}
/* Submenus should appear slightly overlapping to the right (95%) and up (-5%) */
ul.MenuBarHorizontal ul ul
{
position: absolute;
margin: -5% 0 0 95%;
}
/* Submenu that is showing with class designation MenuBarSubmenuVisible, we set left to 0 so it comes onto the screen */
ul.MenuBarHorizontal ul.MenuBarSubmenuVisible ul.MenuBarSubmenuVisible
{
left: auto;
top: 0;
}
---------------- THATS IT

Thanks for the help m8