Jump to content


Photo

Menu Horizontal Forma Uma Escada


  • Faça o login para participar
6 replies to this topic

#1 ilustrevitor

ilustrevitor

    Novato no fórum

  • Usuários
  • 10 posts
  • Sexo:Masculino
  • Localidade:Itajaí

Posted 11/03/2010, 15:38

Eu não sei o que ta causando isso. Estou fazendo um site e tendo problemas com o menu horizontal no IE 7. Coloco float left e os itens se alinham um do lado do outro, no entando eles não sobem, e acabam formando uma escada. Não consigo resolver, e só ocorre no IE7. =//

o código html é assim:
<body>
<div id="nonFooter">
  <div id="menu">
    <div id="nav">
      <ul id="listaMenu">
        <li ><a href="home.html"class="listaMenu">· O mundo da Carlota</a></li>
        <li ><a href="parcerias.html" class="listaMenu"id="ePLogo">· Parcerias</a></li>
        <li ><a href="servico.html"class="listaMenu">· Serviços</a></li>
        <li ><a href="diversao.html"class="listaMenu">· Diversão</a></li>
        <li ><a href="contato.html"class="listaMenu">· Contato</a></li>
      </ul>
    </div>
    <!--END of nav-->
  </div>
  <!--END of menu-->
  <div id="content"></div> 
</div>
<!--END of nonFooter-->
<div id="footer">
</div>
<!--END of footer-->
</body>

e o css:
* {
	margin:0;
	padding:0;
	border:0;
}
html {
	height: 100%;
}
body {
	height: 100%;
	background-image:url(img/fundo.jpg);
	background-attachment:scroll;
	background-position:top center;
	background-repeat:no-repeat
}
* html #nonFooter {
	height: 100%;
}
#nonFooter {
	position:relative;
	min-height: 100%;
}
#menu {
	position:relative;
	width:1280px;
	height:231px;
	left:50%;
	margin-left:-640px;
	background-image:url(img/menu.png);
	background-attachment:scroll;
	background-position:top center;
}
#listaMenu {
	position: relative;
	width:100%;
	top:156px;
	margin-left:280px;
	min-height:0;
	list-style-type:none;
}
li a.listaMenu {
	float:left;
	display: inline;
	text-decoration:none;
	color:#FC0;
	margin:auto auto 5px 5px;
	font-family: Verdana, Arial, Helvetica;
	font-size: 12px;
	font-weight:bold;
}
li #ePLogo {
	margin-right:265px;/*espaço para o logotipo*/
}
#content {
	position:relative;
	width:750px;
	left:50%;
	margin-left:-375px;
	border-bottom:5px;
	padding-bottom: 275px; /*altura do footer*/
}
#footer {
	position: relative;
	margin-top:-275px;
	height:275px;
	clear:both; /*elimina os "float's" criados nos boxes*/
	width:1280px;
	left:50%;
	margin-left:-640px;
	background-image:url(img/footer.gif);
	background-position:top center;
	background-repeat:no-repeat;
	background-color:#002d4a;
}
#innerFooter {
	width:750px;
	position:absolute;
	left:50%;
	margin-left:-375px;
}


#2 Maykel Esser

Maykel Esser

    Super Veterano

  • Usuários
  • 1536 posts
  • Sexo:Masculino
  • Localidade:Curitiba - PR

Posted 12/03/2010, 08:49

dê um clear:both na LI! Deverá resolver.

Se este post lhe ajudou, ajude o fórum também. Use a reputação de mensagens! add.png


#3 ilustrevitor

ilustrevitor

    Novato no fórum

  • Usuários
  • 10 posts
  • Sexo:Masculino
  • Localidade:Itajaí

Posted 12/03/2010, 09:02

Tentei, mas não deu certo :(
O menú nesse caso fica com um item embaixo do outro, e eu quero que ele flutue à esquerda.


O que ta acontecendo é isso:
Posted Image

#4 Maykel Esser

Maykel Esser

    Super Veterano

  • Usuários
  • 1536 posts
  • Sexo:Masculino
  • Localidade:Curitiba - PR

Posted 12/03/2010, 13:09

tire o float:left do link e bote na LI.

Se este post lhe ajudou, ajude o fórum também. Use a reputação de mensagens! add.png


#5 ilustrevitor

ilustrevitor

    Novato no fórum

  • Usuários
  • 10 posts
  • Sexo:Masculino
  • Localidade:Itajaí

Posted 12/03/2010, 15:29

:D :D

deu certo, valeu mesmo Maykel

#6 HaroNism

HaroNism

    Super Veterano

  • Usuários
  • 15385 posts
  • Sexo:Masculino
  • Localidade:San Miguel de Tucuman

Posted 22/09/2017, 09:10

Comparatif Prix Cialis France generic cialis Cheap Valtrex Canada
Propecia Prescription
Viagra Generika Erfahrungsbericht <a href=http://cialtobuy.com>cialis</a> Kamagra En Insuficiencia Cardiaca

#7 JeffMalm

JeffMalm

    Super Veterano

  • Usuários
  • 12254 posts
  • Sexo:Feminino
  • Localidade:Mount Carey

Posted 11/02/2023, 06:14

cialis para que sirve el adapaleno y benzoyl peroxide PARIS, July 11 Reuters Two French human rights groupsfiled a legal complaint on Thursday that targets the U propecia shedding As the race gets closer, make sure to stay tuned to FanDuel TV to get all the information you need to make the smartest bets
High osmolal contrast media are associated with an increased risk of CA AKI as compared to low osmolal and iso osmolal contrast media overnight cialis delivery
Survival rate to 24 month survival and is modeled using the Cox proportional hazards model stromectol for lice




1 user(s) are reading this topic

0 membro(s), 1 visitante(s) e 0 membros anônimo(s)

IPB Skin By Virteq