Usamos cookies para medir audiência e melhorar sua experiência. Você pode aceitar ou recusar a qualquer momento. Veja sobre o iMasters.
Utilizo este script em um textarea. Quando rodo no IE9 ou crhome ele fica alinhado com uma painel existente acima do mesmo. Já quando rodo no IE6 ou mozila ele desalinha, ficando quase ao lado do primeiro bloco. qual o erro?
#frm-msg label textarea{
width:500px;
border:1px solid #ccc;
-moz-border-radius:5px;
-webkit-border-radius:5px;
border-radius:5px;
overflow:auto;
height: 100px;
float: none;
position: relative;
left: -10px;
top: auto;
right: auto;
bottom: auto;
visibility: visible;
margin: auto;
padding: 0px;
}Que non-sense esse seu script ein fera?
Pra que top, right e bottom auto? E mais, existe alguma div pai com o visibility hidden? Senão, remove essa propriedade da li.
ok,
Segue o link
e o meu arquivo CSS
body{background:#333}
h1 {
color: #fff;
text-align: center;
overflow-x: hidden;
}
#erro{
width:400px;
margin:0 auto;
background:#fff;
color:#f00;
text-align:center;
}
#frm-login {
width: 400px;
margin: 0 auto;
background:#fff;
}
#frm-login fieldset{
border:1px solid #ccc;
padding:10px ;
}
#frm-login a{
color:#333;
display:block;
text-align:center;
}background:#ccc;
}
#frm-login label input{
padding:5px 0;
width:250px;
border:1px solid #ccc;
-moz-border-radius:5px;
}border-color:#333;
}padding:5px 10px;
cursor:pointer;
}
#frm-msg {
width: auto;
margin-top: 0;
margin-right: auto;
margin-bottom: 0;
margin-left: auto;
height: auto;
}width:400px;
display:block;
float:left;
}display:block;
color:#CCCCCC;
}width:500px;
border:1px solid #ccc;
-moz-border-radius:5px;
-webkit-border-radius:5px;
border-radius:5px;
overflow:auto;
height: 100px;
float: none;
position: relative;
left: -10px;
top: auto;
right: auto;
bottom: auto;
visibility: visible;
margin: auto;
padding: 0px;
}border-color:#333;
}
#frm-msg #submit{
float:none;
margin-top:auto;
padding: 0px;
position: relative;
width: auto;
height: auto;
}
#painel {
width: 500px;
margin-right: auto;
margin-bottom: 0;
margin-left: auto;
background-color: #FFFFFF;
position: relative;
float: left;
height: 200px;
visibility: visible;
top: 0px;
right: 0px;
margin-top: auto;
left: 5px;
bottom: 0px;
overflow:auto;
-moz-border-radius:5px;
-webkit-border-radius:5px;
border-radius:5px;
}border-bottom:1px solid #e5e5e5;
color:#777;
margin:0;
visibility: visible;
padding-top: 0px;
padding-right: 0;
padding-bottom: 0px;
padding-left: 0;
}Tente:
#frm-msg label textarea{
width: 500px;
border: 1px solid #ccc;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
border-radius: 5px;
overflow: auto;
height: 100px;
float: left;
position: relative;
left: -10px;
margin: auto;
padding: 0px;
}Colega, efetuei a altetação, mas o resultado continua o mesmo.
Deixe o textarea da maneira que eu te disse e tente:
#painel {
background-color: #FFFFFF;
width: 500px;
position: relative;
float: left;
height: 200px;
left: 5px;
-moz-border-radius:5px;
-webkit-border-radius:5px;
border-radius:5px;
clear: right;
display: inline;
}
Se tu pudesse postar a página aqui seria melhor, porque não tenho noção de como está o seu HTML.
ok. lá vai
<!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>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.3/jquery.min.js"></script>
<script type="text/javascript" src="js/chat.js"></script>
<title>Culto ao vivo com chat</title>
<style type="text/css">background-color: #333333;
}</style>
<style type="text/css">.style6 {
font-size: 18px;
font-weight: bold;
}</style>
<link href="css/style.css" rel="stylesheet" type="text/css" />
<style type="text/css"></style>
</head>
<body>
<table width="974" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="11" rowspan="3" bgcolor="#666666"> </td>
<td colspan="3" bgcolor="#666666"></span>
<div align="center"><span class="style3 style6"><?php echo $_COOKIE['nome']?> </span>, <span class="style2">Bem Vindo ao nosso culto online </span> </span></div></td>
<td width="10" bgcolor="#666666"> </td>
</tr>
<tr>
<td width="432" height="325" valign="top"><object id=Player
codebase=http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,5,715
type=application/x-oleobject height=306
standby="Carregando streaming ..." width=432
classid=CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6>
<param name="URL" value="mms://201.48.216.91/advarzea">
<param name="rate" value="1">
<param name="balance" value="0">
<param name="currentPosition" value="0">
<param name="defaultFrame" value="datawindow">
<param name="playCount" value="1">
<param name="autoStart" value="-1">
<param name="currentMarker" value="0">
<param name="invokeURLs" value="-1">
<param name="baseURL" value>
<param name="volume" value="100">
<param name="mute" value="0">
<param name="uiMode" value="full">
<param name="stretchToFit" value="-1">
<param name="windowlessVideo" value="0">
<param name="enabled" value="-1">
<param name="enableContextMenu" value="-1">
<param name="fullScreen" value="0">
<param name="SAMIStyle" value>
<param name="SAMILang" value>
<param name="SAMIFilename" value>
<param name="captioningID" value>
<param name="enableErrorDialogs" value="0">
<param name="_cx" value="11430">
<param name="_cy" value="8096">
<embed type="application/x-mplayer2" src="mms://201.48.216.91/advarzea" name="MediaPlayer" width="432" height="307" showstatusbar="1" showcontrols="1" showdisplay="0" autostart="1"> </embed>
</object> </td>
<td width="15" bgcolor="#666666"> </td>
<td width="512"><div id="painel">
<?php $ativo = ($v['nome'] == $_COOKIE['nome']) ? ' class="ativo"' : '';
printf('<p%s>[%s] - %s</p>', $ativo, $v['nome'], $v['mensagem']);
}
?>
</div>
<form action="" method="post" id="frm-msg">
<fieldset>
<label>
<span class="style7">Digite sua Mensagem</span>
<br />
<textarea name="mensagem" id="mensagem" cols="70" rows="5"></textarea>
</label>
</fieldset>
</form>
<input type="button" id="submit" value="Enviar" />
<!-- LiveZilla Chat Button Link Code (ALWAYS PLACE IN BODY ELEMENT) --><div style="display:none;"><a href="javascript:void(window.open('http://www.advarzea.com.br/aovivo/livezila/chat.php','','width=40,height=600,left=0,top=0,resizable=yes,menubar=no,location=no,status=yes,scrollbars=yes'))"><img id="chat_button_image" src="http://www.advarzea.com.br/aovivo/livezila/image.php?id=03&type=overlay" width="32" height="112" border="0" alt="LiveZilla Live Help"></a></div><!-- http://www.LiveZilla.net Chat Button Link Code --><!-- LiveZilla Tracking Code (ALWAYS PLACE IN BODY ELEMENT) --><div id="livezilla_tracking" style="display:none"></div><script type="text/javascript">
var script = document.createElement("script");script.type="text/javascript";var src = "http://www.advarzea.com.br/aovivo/livezila/server.php?request=track&output=jcrpt&fbpos=02&fbml=0&fbmt=0&fbmr=0&fbmb=0&fbw=32&fbh=112&nse="+Math.random();setTimeout("script.src=src;document.getElementById('livezilla_tracking').appendChild(script)",1);</script><noscript><img src="http://www.advarzea.com.br/aovivo/livezila/server.php?request=track&output=nojcrpt&fbpos=02&fbml=0&fbmt=0&fbmr=0&fbmb=0&fbw=32&fbh=112" width="0" height="0" style="visibility:hidden;" alt=""></noscript><!-- http://www.LiveZilla.net Tracking Code -->
<div align="center"></div></td>
<td rowspan="2" bgcolor="#666666"> </td>
</tr>
<tr>
<td height="75" colspan="2" bgcolor="#666666"><p align="center"></p> </td>
</tr>
</table>
</body>
</html>
vou testar sua opção. valeu
Não sei se já conseguiu resolver, mas com essas tabelas fica bem chato de estruturar uma página. Tabelas sem Reset CSS é pior ainda, tudo é renderizado de forma diferente em cada browser.
Se quer solucionar de forma correta, reestruture a página usando divs e CSS. Busque organizar seu CSS, pois no mesmo código tu utilizou CSS inline, incorporado e linkado.
O recomendado:
<link href="css/style.css" rel="stylesheet" type="text/css" />
E além do mais, com um código organizado é bem mais fácil de te ajudar.
Ok, colega
Vou estudar e trabalhar em cima destas dicas.
Valeu por enquanto
Poste um link ou um print, por favor...