Jump to content


Photo

Alinhar 3 Objetos Lado A Lado


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

#1 Josy

Josy

    :*

  • Usuários
  • 662 posts
  • Sexo:Feminino
  • Localidade:Porto Alegre/RS

Posted 06/03/2007, 09:16

<style type="text/css">
<!-- 
	
	body
	{
		font-family: Verdana, Arial, Helvetica, sans-serif;
		margin: 0;
		font-size: 80%;
		font-weight: bold;
	}	
	#menu
	{
		width: 200px;
		border-style: dashed dashed dashed dashed;
		border-color: #608FB5;
		border-width: 1px;
		margin-top: 10%; /*espaço das margens*/
		float:left;
		margin-left: 1%;
	}
#cabecalho
	{
		border-style: dashed dashed dashed dashed;
		border-color: #608FB5;
		border-width: 1px;
		background: #8ac;
		width: 493px;
		padding: 0; /*espaço das margens*/
		margin-top: 10%; /*espaço das margens*/
		margin-left: 1%;
		font: 14px Verdana, sans-serif;
		float:left;
	}	
	
	p.titulo
	{
		padding: 10px;
		top: 30px;
		display: block;
		padding: 5px 5px 5px 0.5em;	
		font-weight: bold; 
		text-align: center;
		float:left;
	}
	
	#corpo
	{
		width: 493px;	
		margin-top: 3%;
		margin-left: 1%;
		font: 14px Verdana, sans-serif;
		float:left;
		border-style: ridge;
		background: #eee;
		height: 250px; //altura borda
	}	
				a.img_nh
	{
		width: 200px;
		border-style: dashed dashed dashed dashed;
		border-color: #608FB5;
		border-width: 1px;
		margin-top: 10%; /*espaço das margens*/
		float:left;
		margin-left: 1%;
	}	

-->
</style>

<div id="menu">
	<p class="menu">Busca por Guias</p>
	<ul id="menuver">
		
		<?
			$guias = MYSQL_QUERY("SELECT DISTINCT guia FROM $tabela order by guia") or die ("Erro SQL linha 78");
			while($dados = mysql_fetch_array($guias))
			{
				$guia = $dados['guia'];
				echo "<li>";
				echo "<a href='#'>$guia</a>";
				echo "</li>";
			}
		?>
	</ul>
	<p class="menu"></p>
</div>

<div id="cabecalho">
<p class="titulo">Busca Comércio</p>
<form name="form" method="post" onKeyPress="tecla(event);">
<select name='combo1' id='combo1' onChange='mostra();'>
   				<option value=''>--------------------Categorias--------------------</option>
<?
				$categ = MYSQL_QUERY("SELECT DISTINCT categoria FROM $tabela order by categoria") or die ("Erro SQL linha 158");
				$categoria_escolhida = isset($_POST['combo1'])? $_POST['combo1'] : null;
				while($dados = mysql_fetch_array($categ))
				{
					$categoria = $dados['categoria'];
					printf("<option ");
					if ($categoria_escolhida == $categoria)
					  {
		   				echo "selected ";
		 			}
		 			echo "value=$categoria>$categoria</option>";
				}
?>					
			</select>
<select name='combo2' id='combo2'>
<option>-----------------SubCategorias-----------------</option>
<?				
			$subcateg = MYSQL_QUERY("SELECT DISTINCT subcategoria FROM $tabela where categoria like '%$categoria_escolhida%'") or die ("Erro SQL linha 109");
				while($dados2 = mysql_fetch_array($subcateg))
				{
					$subcateg = $dados2['subcategoria'];
					printf("<option>$subcateg</option>");
				}
			echo "</select>";
			$subcategoria_escolhida = isset($_POST['combo2'])? $_POST['combo2'] : null;
?>	   		
			
</div>
<div id="corpo">
	<p class="destaque"><img src="./images/imagem.jpg"></p>
	<div id="cliente">
		<p class="logo"><img src="./images/logo1.jpg">
		<p class="info">
			Nome:Empresa 1<BR>
			Endereço: Rua Tal<BR>
			Telefone: xxxx.xxxx<BR>
			Email:xxxx@xxxxx.xxx.xx<BR>
			Site:www.xxxxxx.xxx.xx<BR>
		</p>
		<a class="link" href="#" title="Meu titulo">Saiba Mais</a>
	</div>
</div>		
	<a class="img_nh" href="www.novohamburgo.org" title="Novo Hamburgo.org"><img src="./images/img_nh.jpe" href="#"></a>
</div>


Não consigo deixar a img_nh na mesma altura do menu e do cabeçalho ... a img_nh fica no maximo na altura do corpo, mesmo o cabeçalho tendo float: left;

Attached Files



___________________________________

Josy R.L.
Grupo Plyme
www.plyme.com.br
___________________________________


#2 bimonti

bimonti

    Super Veterano

  • Usuários
  • 2654 posts
  • Sexo:Masculino

Posted 06/03/2007, 13:32

Ela deve vir antes da outra DIV no seu código fonte ...
WebFórum - Equipe de Desenvolvimento - Monitor
Posted Image
Yeah I do have some stories, and it's true I want all the glory ...

#3 Andreia Regina

Andreia Regina

    Veterano

  • Conselheiros
  • 1347 posts
  • Sexo:Feminino
  • Localidade:PR
  • Interesses:PHP; MySQL; Javascript; CSS; tudo ligado ao desenvolvimento web.

Posted 06/03/2007, 13:53

Um exemplo rapidinho e bem simples:
<div style="position:relative; float:left; width: 240px;">
		 <p> Conteúdo da div à esquerda </p> 
	</div>
		<div style="position:relative; float:right; width: 240px;"> 
		<p> Conteúdo da div à direita </p>
	  </div>
	  <div style="position:relative; width: 240px;" >
		<p> conteúdo da div central </p>
	  </div>
Josy, uma dica, você pode definir a borda assim:
border: dashed #608FB5 1px;
utilizando uma definição completa em uma linha, o código fica mais limpo. ;)

Fórum WMO - Conselheira - Na equipe desde 31/01/2006.
Links importantes: Regras de conduta - Busca do fórum


#4 RonsisM

RonsisM

    Super Veterano

  • Usuários
  • 15724 posts
  • Sexo:Masculino
  • Localidade:Plovdiv

Posted 24/09/2017, 23:56

Cialis 10mg Wirkung Buy Avodart cialis price Acheter Du Clomid En Streaming Le Propecia En Vente Libre Cialis Generika

#5 RonsisM

RonsisM

    Super Veterano

  • Usuários
  • 15724 posts
  • Sexo:Masculino
  • Localidade:Plovdiv

Posted 08/10/2017, 17:10

Achat Viagra Belgique viagra Cialis Uso Diario Precio
Original Viagra Viagra Kaufen Bewertung viagra Viagra Para La Eyaculacion Precoz Comprar Cialis
Cash On Delivery Progesterone Amex Cheap Donde Se Puede Comprar Viagra Sin Receta viagra Kamagra Sales

#6 RonsisM

RonsisM

    Super Veterano

  • Usuários
  • 15724 posts
  • Sexo:Masculino
  • Localidade:Plovdiv

Posted 23/10/2017, 13:07

Kamagra Vente Libre Levaquin Want To Buy 39 Vigara online pharmacy Cialis Como Se Usa Fedex Provera No Prior Script
Viagra Contre Decalage Horaire buy viagra online Hair Loss Propecia Men Liste Pays Cialis Vente Libre
Amoxicillin Company Generic Name Of Levitra generic viagra Finasterida Y Propecia

#7 RonsisM

RonsisM

    Super Veterano

  • Usuários
  • 15724 posts
  • Sexo:Masculino
  • Localidade:Plovdiv

Posted 05/11/2017, 03:30

Canadian Express Phramcy Ed Meds Online Canada Getting Toddler To Take Liquid Amoxicillin buy viagra online Canada Pharmacy Online Review Celebrexsavings Xenical 60mg From Canada
Amoxicillin Liquid And Indications Propecia Es Bueno Cialis Funciona viagra online prescription Efectos De La Viagra

#8 RonsisM

RonsisM

    Super Veterano

  • Usuários
  • 15724 posts
  • Sexo:Masculino
  • Localidade:Plovdiv

Posted 27/11/2017, 21:14

Buy Prednisone Online No Prescription Cheap viagra Amount Of Amoxicillin For Urinary Infection
Buy Amoxicillin Online In Uk Prezzo Kamagra viagra online prescription Generico De Propecia Comprar Levitra
Cytotec Efectos Where To Purchase Macrobid Online C.O.D. Comprar Kamagra En Espana generic cialis Acheter Lioresal En Canada Farmacia Levitra Generico

#9 JeffMalm

JeffMalm

    Super Veterano

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

Posted 09/02/2023, 02:04

how long does it take for doxycycline to work Across most of the PIONEER studies, oral semaglutide reduced systolic blood pressure SBP by 1 6 mmHg, with many reductions achieving statistical significance for oral semaglutide 14 mg versus placebo Table 3 46, 47, 48, 49, 52, 53, 54, 55
cheapest cialis 20mg Wells GA, Shea B, O Connell D, Peterson J, Welch V, Losos M, Tugwell P 2020 The Newcastle Ottawa Scale NOS for assessing the quality of nonrandomised studies in meta analyses
Patients should be advised to stop the drug immediately if they develop any type of rash and contact their physicians as soon as possible Patients should promptly report signs or symptoms of unexplained weight gain or edema to their physicians best price cialis 805 10 mg 2 mL Plegadiza x 5 amps
Come in, said low dose tamoxifen daily for male libido Can Testosterone Pills Increase Size Jack, and Budd made his appearance is clomiphene the same as clomid I would be concerned with a fertility dr




0 user(s) are reading this topic

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

IPB Skin By Virteq