Ir para conteúdo

Arquivado

Este tópico foi arquivado e está fechado para novas respostas.

Uriel Juliatti

Alinhamento de DIV

Recommended Posts

Olá, estou com problemas no posicionamento do WEBSITE, jpa verifiquei no CSS, aparentemente esta tudo OK.

 

O problema é que em um a barra da direita (cinza) no MOzilla fica de um jeito e no IE 7.0 outra. Inclusive, no IE 6.0 fica totalmente diferente também.

 

Vou postar aqui o CSS e depois o código na página e aqui está a página na internet: http://www.fitaequipamentos.com.br/site4

CSS:

/* Documentação */
body{margin:0px; padding:0px; background:url(images/mainbg.gif) 0 0 repeat-x #e8e7e3; color:#6B6854; font:14px/18px "Trebuchet MS", Arial, Helvetica, sans-serif;}
div, p, ul, h1, h2, h4, img, form, label{padding:0px; margin:0px;}
ul{list-style-type:none;}

/*----Parte Principal----*/
#mainPan{width:802px; position:relative; margin:0 auto; padding:0px; }
.main {width:66px; height: 600px; position:absolute;  margin-top:230px; margin-left: 733px; float:right; background:url(images/fundo_cinzapq.png) 0 0 repeat-y; } /* barra */
.main2 {width:66px; height: 900px; position:absolute;  margin-top:230px; margin-left: 733px; float:left; background:url(images/fundo_cinzapq.png) 0 0 repeat-y; } /* barra maior caso a página desça muito*/
/*--- Fundo do meio ---*/

/*----Esquerda----*/
#leftPan{width:242px; float:left;}
#leftTopPan{width:242px; height:144px; position:relative; margin:0 auto; padding:0; background:url(images/left-top.jpg) 0 0 no-repeat;} /* logo no topo */
#leftTopPan img{width:160px; height:39px; margin:30px 0 0 37px;}

#leftPan ul{width:242px; height:268px; display:block; background:url(images/menu-bg.jpg) 0 0 no-repeat; padding:28px 0 0;} /* menu */
#leftPan ul li{width:118px; height:27px; position:relative; margin:0 auto; background:url(images/dot.gif) 0 100% repeat-x;}
#leftPan ul li a{width:96px; height:26px; display:block; background:url(images/arrow-normal.gif) 0 50% no-repeat #F6F4E4; color:#f4c31e; font:13px/26px "Trebuchet MS", Arial, Helvetica, sans-serif; font-weight:; padding:0 0 0 22px; text-decoration:none;}
#leftPan ul li a:hover{background:url(images/arrow-normal.gif) 0 50% no-repeat #F6F4E4; color:#7F0A5F; text-decoration:none;}
#leftPan ul li.home{width:96px; height:27px; display:block; background: url(images/homebg.gif) 0 0 no-repeat #F6F4E4; color:#7F0A5F; font:13px/26px "Trebuchet MS", Arial, Helvetica, sans-serif; font-weight:bold; text-decoration:none; padding:0 0 0 22px;}
#leftPan ul li.contact{background:none;}

#leftPan ul.linkone{width:240px; height:259px; padding:0; background:none;}
#leftPan ul.linkone li{width:118px; height:26px; position:relative; margin:0 auto; background:none; padding:0px;}
#leftPan ul.linkone li a{width:96px; height:26px; display:block; background:url(images/arrow-normal.gif) 0 50% no-repeat #F6F4E4; color:#8F8C73; font:13px/26px "Trebuchet MS", Arial, Helvetica, sans-serif; font-weight:normal; padding:0 0 0 22px; text-decoration:underline;}
#leftPan ul.linkone li a:hover{background:url(images/arrow-normal.gif) 0 50% no-repeat #F6F4E4; color:#25241E; text-decoration:underline;}
#leftPan h1{width:220px; height:20px; color:#ffffff; font-size:14px; line-height:12px; padding-top: 20px; padding-left:12px; margin:0px 12px 12px 0px; font-weight:bold;}
#leftPan h2{width:220px; height:20px;  color:#58574e; font-size:14px; line-height:12px; padding-top:0px; margin:27px 0px 0px 12px; font-weight:normal;}
#leftPan h4{width:240px; height:50px; display:block; color:#f4c31e; font-size:24px; line-height:22px; padding:0 0 0 0px; margin:10px 0 0 0px; clear:both;}
#leftPan h4 span{color:#9F9D81; font-size:16px; font-weight:bold; line-height:18px;}
#leftPan form{width:222px; height:173px; position:relative; margin-left:20px; background:url(images/formbg.gif) 0 0 no-repeat #ABA894; color:#fff;}
#leftPan form input{width:143px; height:17px; margin:3px 0 2px 35px; }
#leftPan form label{width:143px; height:18px; margin:2px 0 0 35px; font:12px/15px Arial, Helvetica, sans-serif; font-weight:bold;}

#leftPan form input.button{width:51px; height:17px; float:left; background:url(images/button.gif) 0 0 no-repeat #FEFEFE; color:#fff; font-size:12px; font-weight:bold; line-height:18px; border:none; padding:0 10px 0 0;  margin:3px 10px 2px 28px; }

#leftPan form h1{width:222px; height:173px; display:block; background:url(images/formbg.gif) 0 0 no-repeat; color:#ffffff; font-size:18px; line-height:47px; padding:70 0 0 70px;}
#leftPan form #register{width:100px; height:24px; float:left; margin:3px 0 0; }
#leftPan form #register a{display:block; background: url(images/arrow4.gif) 100% 50% no-repeat #ABA894; color:#fff; font-size:14px; padding:0 5px 0 0; text-decoration:none;}
#leftPan form #register a:hover{text-decoration:underline;}
#leftPan #form {width:222px; height:173px; display:block; background:url(images/formbg.gif) 0 0 no-repeat; color:#fff; margin-left:10px; font-size:18px; line-height:47px; padding:0 0 0 0px;}

/*----/Esquerda----*/

/*----Direita / Conteudo----*/
#rightPan{width:559px; float:left;}
#rightPan h1{width:559px; height:205px; color:#fff; font:20px/13px Georgia, "Times New Roman", Times, serif; padding:0px 0 0 0px; margin-top:12px;}
#rightPan h1 span{font:13px/16px "Trebuchet MS", Arial, Helvetica, sans-serif;}
#rightPan h2{width:550px; height:50px; display:block; color:#957f52; font-size:24px; line-height:36px; padding:0 0 0 9px; margin:25px 0 0 9px;} /* Primeiro texto */
#rightPan h4{width:240px; height:50px; display:block; color:#f4c31e; font-size:24px; line-height:22px; padding:0 0 0 0px; margin:20px 0 0 9px; clear:both;}
#rightPan h4 span{color:#9F9D81; font-size:16px; font-weight:bold; line-height:18px;}
.rightext {width:559px; height:205px; background:url(images/header.jpg) 0 0 no-repeat #D33F9F; color:#000000; font:20px/13px Georgia, "Times New Roman", Times, serif; padding:0px 0 0 0px; margin-top:50px;}
#rightPan p{padding:0px 0 0 17px;}
#rightPan p.bottompadding{padding:22px 0 0 9px; margin:0 0 38px 0;}
#rightPan p span.boldtext{font-weight:bold;}
#rightPan p span.magedacolortext{background:#F6F4E4; color:#8F146E;}
#rightmorePan{width:420px; height:28px; display:block; background:url(images/pattern.gif) 0 0 repeat; border:1px solid #fff; line-height:28px; padding:0 0 0 20px; margin:0 0 0 9px;}
#rightmorePan p.textposition{float:left; padding:0 0 0 18px; margin:0px;}
#rightmorePan a{float:left; width:36px; height:28px; display:block; background:url(images/morebg.gif) 0 0 no-repeat #D5D2BC; color:#1F1E15; text-decoration:none; padding:0 15px 0 45px; margin:0 0 0 135px;}
#rightmorePan a:hover{text-decoration:underline;}
/* foto */
.foto {
position:relative;
width: 210px;
height:158px;
align:center;
display:inline;
margin-left: 12px;
}
.foto2 {
position:relative;
width: 210px;
height:158px;
align:center;
display:inline;
margin-left: 12px;
}
.legenda
{
font-family: verdana;
font-weight:bold;
font-size: 11px;
text-align: left;
position:relative;
width: 630px;
align: left;
float:left;
margin-left:12px;
}
.legenda2
{
font-family: verdana;
font-weight:bold;
font-size: 11px;
text-align: left;
position:relative;
width: 210px;
align: left;
float:left;
}
.legenda li {
text-align: none;
line-height: 20px;
position: relative;
list-style: none;
display: inline;
padding-left: 0px;
}
#rightmorenextPan{width:420px; height:28px; display:block; background:url(images/pattern.gif) 0 0 repeat; border:1px solid #fff; line-height:28px; padding:0 0 0 20px; margin:0 0 0 9px;}
#rightmorenextPan p.textposition{float:left; padding:0 0 0 18px; margin:0px;}
#rightmorenextPan a{float:left; width:36px; height:28px; display:block; background:url(images/morebg.gif) 0 0 no-repeat #D5D2BC; color:#1F1E15; text-decoration:none; padding:0 15px 0 45px; margin:0 0 0 135px;}
#rightmorenextPan a:hover{text-decoration:underline;}


#rightaddPan{width:442px; height:170px; position:relative; margin:0 auto; padding:50px 0 0 9px;}
#rightaddonePan{width:218px; height:110px; float:left; background:url(images/image1.jpg) 100% 0 no-repeat #CBC8B2; color:#fff; }
#rightaddonePan p.whitetext{font-size:22px; padding:16px 0 0 16px;}
#rightaddonePan p.whitetextbig{font-size:28px; padding:10px 0 0 16px;}
#rightaddonePan a{width:97px; height:33px; display:block; background:url(images/viewmore.jpg) 0 0 no-repeat #ABA894; color:#fff; font-size:16px; line-height:30px; text-decoration:none; margin:15px 0 0; padding:0 0 0 55px;}
#rightaddonePan a:hover{text-decoration:underline;}

#rightaddtwoPan{width:218px; height:110px; float:left; background:url(images/image2.jpg) 100% 0 no-repeat #CBC8B2; color:#fff; margin:0 0 0 6px;}
#rightaddtwoPan p.whitetext{font-size:22px; padding:16px 0 0 16px;}
#rightaddtwoPan p.whitetextbig{font-size:28px; padding:10px 0 0 16px;}

#rightaddtwoPan a{width:82px; height:33px; display:block; background:url(images/viewmore.jpg) 0 0 no-repeat #ABA894; color:#fff; font-size:16px; line-height:30px; text-decoration:none; margin:15px 0 0; padding:0 0 0 55px;}
#rightaddtwoPan a:hover{text-decoration:underline;}

/*----/Direita/Conteudo----*/

/*----Footer Panel----*/
#footermainPan{background:url(images/footerbg.gif) 0 0 repeat-x #FFFFFF; color:#000000; position:relative; height:227px; clear:both;}
#footerPan{width:691px; position:relative; margin:0 auto; font:12px/15px "Trebuchet MS",Arial, Helvetica, sans-serif; font-weight:normal;}

#footerPan ul{width:546px; position:absolute; top:85px; left:180px;}
#footerPan li{float:left; }
#footerPan ul li a{padding:0 10px 0; color:#000000; background:#ffffff; text-decoration:none;}
#footerPan ul li a:hover{text-decoration:underline;}

#footerPan ul.netsimples{width:190px; background:#fFFFFF; color:#000000; display:block; position:absolute; top:160px; left:240px; }
#footerPan ul.netsimples li{height:20px;}
#footerPan ul.netsimples li a{background:#ffffff; display:block; color:#000000; text-decoration:none; padding:0px;}
#footerPan ul.netsimples li a:hover{text-decoration:underline;}

#footerPan p.copyright{width:300px; background:#ffffff; color:#000000; position:absolute; top:105px; left:190px;}

#footerPanhtml{width:64px; height:19px; display:block; position:absolute; top:132px; left:240px;}
#footerPanhtml a{width:59px; height:18px; background:url(images/arrow2.gif) no-repeat 45px 0px #D0CEB8; display:block; position:absolute; top:0px; left:0px; line-height:19px; padding:1px 0 0 5px; border:1px solid #FFFFFA; color:#353427; text-transform:uppercase; text-decoration:none;}
#footerPanhtml a:hover{background:url(images/arrow3.gif) no-repeat 45px 0px #B0AD93; color:#353427; text-decoration:none;}

#footerPancss{width:64px; height:19px; display:block; position:absolute; top:132px; left:320px;}
#footerPancss a{width:49px; height:18px; background:url(images/arrow3.gif) no-repeat 45px 0px #D0CEB8; display:block; position:absolute; top:0px; left:0px;line-height:19px; padding:1px 0 0 15px; border:1px solid #FFFFFA; color:#353427; text-transform:uppercase; text-decoration:none;}
#footerPancss a:hover{background:url(images/arrow2.gif) no-repeat 45px 0px #B0AD93; color:#353427; text-decoration:none;}

HTML:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>:: Fita Equipamentos ::</title>
<link href="style.css" rel="stylesheet" type="text/css" />
</head>

<body>  
<div class="main"></div>	
	
<div id="mainPan"> 
  <div id="leftPan"> 
	<div id="leftTopPan"> </div>
	<ul>
	  <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="240" height="259">
		<param name="movie" value="flash/menu.swf">
		<param name="quality" value="high">
		<param name='wmode' value='transparent'/>
		<embed src="flash/menu.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="240" height="259" wmode="transparent"></embed></object>
	</ul>
	<div id="form"> 
	  <h1>Endereço e telefone:</h1>
	  <h2>Rua Joaquim Aquino Xavier, 03 Nova Brasilia - Cachoeiro de Itapemirim 
		- ES <br />
		<br />
		Tel : <font color="#000000">(28) 3511.1382</font></h2>
	  <br />
	  <br />
	  <h4><br />
		<span></span></h4>
	</div>
  </div>
  <div id="rightPan"> 
	<h1> 
	  <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="559" height="205">
		<param name="movie" value="flash/flash_original.swf">
		<param name="quality" value="high">
		<param name='wmode' value='transparent'/>
		<embed src="flash/flash_original.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="559" height="205" wmode="transparent"></embed></object>
	</h1>
	<h2>Seja bem-vindo à Fita Equipamentos</h2>
	<h2><font color="#ffffff"></font><img src="images/fachada.jpg" vspace="0" hspace="0" border="1" align="middle"></h2>
	<!-- primeiro título -->
	<br />
	<br />
	<br />
	<br />
	<br />
	<br />
	<br />
	<br />
	<br />
	<br />
	<br />
	<br />
	<br />
	<br />
	<p>Aqui você encontra as nossas atualizações, produtos, um breve histórico 
	  <br />
	  da empresa e uma área dinâmica para contato. Agradecemos a sua visita! </p>
	<br />
	<br />
	<br />
	<br />
  </div>
</div>
  
<div id="footermainPan"> 
  <div id="footerPan"> 
	<ul>
	  <li><a href="index.html">Principal</a>| </li>
	  <li><a href="servicos.html">Serviços</a> | </li>
	  <li><a href="empresa.html">Empresa</a>| </li>
	  <li><a href="contato.html">Contato</a></li>
	</ul>
	<p class="copyright">© Fita Ferramentas - Todos os direitos reservados.</p>
	<div id="footerPanhtml"><a href="http://validator.w3.org/check?uri=referer" target="_blank">html</a></div>
	<div id="footerPancss"><a href="http://jigsaw.w3.org/css-validator/check/referer" target="_blank">css</a></div>
	<ul class="netsimples">
	  <li>Mantido por: </li>
	  <li><a href="http://www.netsimples.com.br" target="_blank"> <font color="#f8f8f7">_</font>NETSIMPLES</a></li>
	</ul>
  </div>
</div>
</body>
</html>

Agradeço a atenção de todos que puderem ajudar (ou não :P )

Compartilhar este post


Link para o post
Compartilhar em outros sites

a culpa é do position absoute na primeira div.

 

sugiro que retire a primeira div com o position absolute e reestruture o layout!

 

abraço

Compartilhar este post


Link para o post
Compartilhar em outros sites

×

Informação importante

Ao usar o fórum, você concorda com nossos Termos e condições.