Ir para conteúdo
Fórum Script Brasil
  • 0

Problema com Spry Menu Bar


190004921

Pergunta

Boa noite,

Estou desenvolvendo um menu utilizando o Spry Menu Bar do Dreamweaver. Consegui fazer tudo que eu queria menos uma coisa.

Eu fiz um menu na horizontal com apenas dois links com cascata. Os itens dessas duas cascatas estão com um espacinho entre eles. Gostaria de saber como tiro esse espaço entre eles, pois já tentei de tudo e não encontro aonde devo mexer para tirar esse padding... Gostaria que eles ficassem colados uns com os outros como uma lista mesmo. alguém pode me ajudar com isso? Segue abaixo o código desse Spry Menu Bar:

@charset "UTF-8";

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

/* Copyright © 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: none;

font-size: 100%;

cursor: default;

width: auto;

height: 30px;

}

/* 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: 1000;

}

/* 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: 170px;

float: left;

}

/* 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

{

list-style-type: none;

font-size: 100%;

z-index: 1020;

cursor: default;

width: 170px;

position: absolute;

left: -1000em;

padding: 0px;

margin: 0px;

}

/* 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: 170px;

border-top-width: 0px;

border-right-width: 0px;

border-bottom-width: 0px;

border-left-width: 0px;

border-top-style: none;

border-right-style: none;

border-bottom-style: none;

border-left-style: none;

margin: 0px;

padding: 0px;

}

/* Submenus should appear slightly overlapping to the right (95%) and up (-5%) */

ul.MenuBarHorizontal ul ul

{

position: absolute;

height: 30px;

margin-top: 0%;

margin-right: 0;

margin-bottom: 0;

margin-left: 0%;

}

/* 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;

}

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

DESIGN INFORMATION: describes color scheme, borders, fonts

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

/* Submenu containers have borders on all sides */

ul.MenuBarHorizontal ul

{

width: 170px;

margin: 0px;

padding: 0px;

}

/* Menu items are a light gray block with padding and no text decoration */

ul.MenuBarHorizontal a

{

display: block;

cursor: pointer;

color: #FFF;

text-decoration: none;

font-family: Tahoma, Geneva, sans-serif;

font-size: 12px;

padding-top: 0.5em;

padding-right: 0.75em;

padding-bottom: 0.5em;

padding-left: 0.75em;

text-align: center;

height: 20px;

background-image: url(../imagens/fundolinks.png);

background-repeat: no-repeat;

background-position: 0px 0px;

}

/* Menu items that have mouse over or focus have a blue background and white text */

ul.MenuBarHorizontal a:hover, ul.MenuBarHorizontal a:focus

{

color: #FFF;

text-align: center;

background-image: url(../imagens/fundolinksclique.png);

background-position: 0px 0px;

border-top-style: none;

border-right-style: none;

border-bottom-style: none;

border-left-style: none;

}

/* Menu items that are open with submenus are set to MenuBarItemHover with a blue background and white text */

ul.MenuBarHorizontal a.MenuBarItemHover, ul.MenuBarHorizontal a.MenuBarItemSubmenuHover, ul.MenuBarHorizontal a.MenuBarSubmenuVisible

{

color: #FFF;

}

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

SUBMENU INDICATION: styles if there is a submenu under a given menu item

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

/* Menu items that have a submenu have the class designation MenuBarItemSubmenu and are set to use a background image positioned on the far left (95%) and centered vertically (50%) */

ul.MenuBarHorizontal a.MenuBarItemSubmenu

{

background-image: url(../imagens/fundolinks.png);

background-repeat: no-repeat;

background-position: 0px 0px;

border-top-style: none;

border-right-style: none;

border-bottom-style: none;

border-left-style: none;

bottom: auto;

clip: rect(auto,auto,auto,auto);

}

/* Menu items that have a submenu have the class designation MenuBarItemSubmenu and are set to use a background image positioned on the far left (95%) and centered vertically (50%) */

ul.MenuBarHorizontal ul a.MenuBarItemSubmenu

{

background-image: url(../imagens/fundolinks.png);

background-repeat: no-repeat;

background-position: 0px 0px;

border-top-style: none;

border-right-style: none;

border-bottom-style: none;

border-left-style: none;

margin-bottom: 0px;

padding-bottom: 0px;

bottom: auto;

clip: rect(auto,auto,auto,auto);

}

/* Menu items that are open with submenus have the class designation MenuBarItemSubmenuHover and are set to use a "hover" background image positioned on the far left (95%) and centered vertically (50%) */

ul.MenuBarHorizontal a.MenuBarItemSubmenuHover

{

background-image: url(../imagens/fundolinksclique.png);

background-repeat: no-repeat;

background-position: 0px 0px;

border-top-style: none;

border-right-style: none;

border-bottom-style: none;

border-left-style: none;

bottom: auto;

}

/* Menu items that are open with submenus have the class designation MenuBarItemSubmenuHover and are set to use a "hover" background image positioned on the far left (95%) and centered vertically (50%) */

ul.MenuBarHorizontal ul a.MenuBarItemSubmenuHover

{

background-image: url(../imagens/fundolinksclique.png);

background-repeat: no-repeat;

background-position: 0px 0px;

border-top-style: none;

border-right-style: none;

border-bottom-style: none;

border-left-style: none;

}

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

BROWSER HACKS: the hacks below should not be changed unless you are an expert

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

/* HACK FOR IE: to make sure the sub menus show above form controls, we underlay each submenu with an iframe */

ul.MenuBarHorizontal iframe

{

position: absolute;

z-index: 1010;

filter:alpha(opacity:0.1);

}

/* HACK FOR IE: to stabilize appearance of menu items; the slash in float is to keep IE 5.0 from parsing */

@media screen, projection

{

ul.MenuBarHorizontal li.MenuBarItemIE

{

display: inline;

f\loat: left;

background: #FFF;

}

}

Agora o código no Dreamweaver com os links:

<ul id="MenuBar1" class="MenuBarHorizontal">

<li><a href="inicio.html" target="conteudo">IN&Iacute;CIO</a> </li>

<li><a href="#" class="MenuBarItemSubmenu">MUDAS</a>

<ul>

<li><a href="#">PLEOMELES</a></li>

<li><a href="#">PALMEIRAS</a></li>

</ul>

</li>

<li><a class="MenuBarItemSubmenu" href="#">PALMEIRAS</a>

<ul>

<li><a href="#">AZUL</a></li>

<li><a href="#">SAGU</a></li>

<li><a href="#">MASCARENHA ROSA</a></li>

</ul>

</li>

<li><a href="fotos.html" target="conteudo">FOTOS</a></li>

<li><a href="#">QUEM SOMOS</a></li>

<li><a href="#">CONTATO</a></li>

</ul>

Desde já, agradeço pela atenção de vocês!

Obrigado!

Link para o comentário
Compartilhar em outros sites

1 resposta a esta questão

Posts Recomendados

  • 0
QUOTE

@charset "UTF-8";

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

/* Copyright © 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: none;
font-size: 100%;
cursor: default;
width: auto;
height: 30px;
}
/* Set the active Menu Bar with this class, currently setting z-index to accomodate IE rendering bug: http://therealcrisp....-zindexbug.html */
ul.MenuBarActive
{
z-index: 1000;
}
/* 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: 170px;
float: left;
}
/* 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
{
list-style-type: none;
font-size: 100%;
z-index: 1020;
cursor: default;
width: 170px;
position: absolute;
left: -1000em;
padding: 0px;
margin: 0px;
}
/* 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: 170px;
border-top-width: 0px;
border-right-width: 0px;
border-bottom-width: 0px;
border-left-width: 0px;
border-top-style: none;
border-right-style: none;
border-bottom-style: none;
border-left-style: none;
margin: 0px;
padding: 0px;
}
/* Submenus should appear slightly overlapping to the right (95%) and up (-5%) */
ul.MenuBarHorizontal ul ul
{
position: absolute;
height: 30px;
margin-top: 0%;
margin-right: 0;
margin-bottom: 0;
margin-left: 0%;
}
/* 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;
}

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

DESIGN INFORMATION: describes color scheme, borders, fonts

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

/* Submenu containers have borders on all sides */
ul.MenuBarHorizontal ul
{
width: 170px;
margin: 0px;
padding: 0px;
}
/* Menu items are a light gray block with padding and no text decoration */
ul.MenuBarHorizontal a
{
display: block;
cursor: pointer;
color: #FFF;
text-decoration: none;
font-family: Tahoma, Geneva, sans-serif;
font-size: 12px;
padding-top: 0.5em;
padding-right: 0.75em;
padding-bottom: 0.5em;
padding-left: 0.75em;
text-align: center;
height: 20px;
background-image: url(../imagens/fundolinks.png);
background-repeat: no-repeat;
background-position: 0px 0px;
}
/* Menu items that have mouse over or focus have a blue background and white text */
ul.MenuBarHorizontal a:hover, ul.MenuBarHorizontal a:focus
{
color: #FFF;
text-align: center;
background-image: url(../imagens/fundolinksclique.png);
background-position: 0px 0px;
border-top-style: none;
border-right-style: none;
border-bottom-style: none;
border-left-style: none;
}
/* Menu items that are open with submenus are set to MenuBarItemHover with a blue background and white text */
ul.MenuBarHorizontal a.MenuBarItemHover, ul.MenuBarHorizontal a.MenuBarItemSubmenuHover, ul.MenuBarHorizontal a.MenuBarSubmenuVisible
{
color: #FFF;
}

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

SUBMENU INDICATION: styles if there is a submenu under a given menu item

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

/* Menu items that have a submenu have the class designation MenuBarItemSubmenu and are set to use a background image positioned on the far left (95%) and centered vertically (50%) */
ul.MenuBarHorizontal a.MenuBarItemSubmenu
{
background-image: url(../imagens/fundolinks.png);
background-repeat: no-repeat;
background-position: 0px 0px;
border-top-style: none;
border-right-style: none;
border-bottom-style: none;
border-left-style: none;
bottom: auto;
clip: rect(auto,auto,auto,auto);
}
/* Menu items that have a submenu have the class designation MenuBarItemSubmenu and are set to use a background image positioned on the far left (95%) and centered vertically (50%) */
ul.MenuBarHorizontal ul a.MenuBarItemSubmenu
{
background-image: url(../imagens/fundolinks.png);
background-repeat: no-repeat;
background-position: 0px 0px;
border-top-style: none;
border-right-style: none;
border-bottom-style: none;
border-left-style: none;
margin-bottom: 0px;
padding-bottom: 0px;
bottom: auto;
clip: rect(auto,auto,auto,auto);
}
/* Menu items that are open with submenus have the class designation MenuBarItemSubmenuHover and are set to use a "hover" background image positioned on the far left (95%) and centered vertically (50%) */
ul.MenuBarHorizontal a.MenuBarItemSubmenuHover
{
background-image: url(../imagens/fundolinksclique.png);
background-repeat: no-repeat;
background-position: 0px 0px;
border-top-style: none;
border-right-style: none;
border-bottom-style: none;
border-left-style: none;
bottom: auto;
}
/* Menu items that are open with submenus have the class designation MenuBarItemSubmenuHover and are set to use a "hover" background image positioned on the far left (95%) and centered vertically (50%) */
ul.MenuBarHorizontal ul a.MenuBarItemSubmenuHover
{
background-image: url(../imagens/fundolinksclique.png);
background-repeat: no-repeat;
background-position: 0px 0px;
border-top-style: none;
border-right-style: none;
border-bottom-style: none;
border-left-style: none;
}

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

BROWSER HACKS: the hacks below should not be changed unless you are an expert

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

/* HACK FOR IE: to make sure the sub menus show above form controls, we underlay each submenu with an iframe */
ul.MenuBarHorizontal iframe
{
position: absolute;
z-index: 1010;
filter:alpha(opacity:0.1);
}
/* HACK FOR IE: to stabilize appearance of menu items; the slash in float is to keep IE 5.0 from parsing */
@media screen, projection
{
ul.MenuBarHorizontal li.MenuBarItemIE
{
display: inline;
f\loat: left;
background: #FFF;
}
}

Agora o código no Dreamweaver com os links:

QUOTE

<ul id="MenuBar1" class="MenuBarHorizontal">
<li><a href="inicio.html" target="conteudo">IN&Iacute;CIO</a> </li>
<li><a href="#" class="MenuBarItemSubmenu">MUDAS</a>
<ul>
<li><a href="#">PLEOMELES</a></li>
<li><a href="#">PALMEIRAS</a></li>
</ul>
</li>
<li><a class="MenuBarItemSubmenu" href="#">PALMEIRAS</a>
<ul>
<li><a href="#">AZUL</a></li>
<li><a href="#">SAGU</a></li>
<li><a href="#">MASCARENHA ROSA</a></li>
</ul>
</li>
<li><a href="fotos.html" target="conteudo">FOTOS</a></li>
<li><a href="#">QUEM SOMOS</a></li>
<li><a href="#">CONTATO</a></li>
</ul>
Olha onde eu destaquei em negrito tenta em um desses?
Link para o comentário
Compartilhar em outros sites

Participe da discussão

Você pode postar agora e se registrar depois. Se você já tem uma conta, acesse agora para postar com sua conta.

Visitante
Responder esta pergunta...

×   Você colou conteúdo com formatação.   Remover formatação

  Apenas 75 emoticons são permitidos.

×   Seu link foi incorporado automaticamente.   Exibir como um link em vez disso

×   Seu conteúdo anterior foi restaurado.   Limpar Editor

×   Você não pode colar imagens diretamente. Carregar ou inserir imagens do URL.



  • Estatísticas dos Fóruns

    • Tópicos
      152,3k
    • Posts
      652,2k
×
×
  • Criar Novo...