Como Centralizar Div?
#1
Posted 22/03/2006, 14:10
<div id="menu" style="top: 160px; z-index: 0">
<?
scrip php
?>
</div>
- LarPhozyHah likes this
___________________________________
Josy R.L.
Grupo Plyme
www.plyme.com.br
___________________________________
#2
Posted 22/03/2006, 14:14
Tenta acrescentar estas definições na css:
margin-left: auto; margin-right: auto;
Fórum WMO - Conselheira - Na equipe desde 31/01/2006.
Links importantes: Regras de conduta - Busca do fórum
#3
Posted 22/03/2006, 14:16
<div align="center" id="menu" style="top: 160px; z-index: 0">
<?
scrip php
?>
</div>
T+
#4
Posted 22/03/2006, 15:04
<style type="text/css">
<!--
body
{
font: normal 12px Lucida Sans Unicode;
}
dl, dt, dd, ul, li
{
margin: 0;
padding: 0;
list-style-type: none;
}
#menu
{
position: absolute; /* deixa os menus fixos */
top: 0;
left: 0;
z-index:100;
width: 100%;
}
#menu dl
{
text-align: center;
float: left;
width: 7em; /* largura dos menus e submenus */
margin: 0px; /* distância dos menus entre si */
overflow: auto;
height: 300px; /* tamanho barra de rolagem */
}
#menu dt /* MENU */
{
padding-top: 12px; /* espaço de cima do menu */
height: 20px;
color: #777; /* letras cinza */
cursor: pointer;
text-align: center;
font-weight: bold; /* tipo letra menu negrito*/
background: #fff;
border: 1px solid #ccc; /* borda menu */
height: 32px; /* altura do menu */
}
#menu li
{
font: normal 8px Lucida Sans Unicode; /* letras sub menus */
border: 1px;
text-align: center;
background: #fff;
height: 15px; /* altura sub menu */
}
#menu li a, #menu dt a
{
padding-top: 5px;
color: #777; /* letras cinza sub menu */
text-decoration: none;
display: block;
height: 100%;
border-bottom: 1px solid #ccc; /* borda inferior */
border-left: 1px solid #ccc; /* borda esquerda */
border-right: 1px solid #ccc; /* borda direita */
}
#menu li a:hover, #menu dt :hover
{
color: #E2144A;
background: #f9f9f9;
}
#site
{
position: absolute;
z-index: 1;
top : 300px;
left : 10px;
color: #000;
background-color: #ddd;
}
a
{
text-decoration: none;
color: gray;
color: #222;
}
-->
</style>
___________________________________
Josy R.L.
Grupo Plyme
www.plyme.com.br
___________________________________
#5
Posted 23/03/2006, 00:28
text-align: center;
Projetos
• Bruno Alves • WebLugar.net •
Fórums
• Ajuda Linux • BrClube • Forum cPanel • webforum • WMS •
#6
Posted 03/01/2008, 20:46
oq pode resolver esta questão seria incluir/alterar a propriedade float para center
no meu caso deu certo
meu css ficou assim:
#menu ul li a {
padding: 2px 10px;
float: center; /* centralizou menu */
#7
Posted 03/01/2008, 21:44
#8
Posted 22/09/2010, 08:15
http://www.ogenial.c...al-e-horizontal
Testei e funcionou perfeitamente, parabéns.
#9
Posted 02/10/2017, 12:01
buy accutane online fast delivery Celexa No Prescription Us Pharmacy Cialis 20 Mg Walmart Price viagra Cialis 10 Mg Ohne Rezept Viagra Generikum Potenzmittel Buy Viagra No Prescription
What Std'S Are Treated With Cephalexin Cephalexin Free Full Text Journal Drugsbroker can you get levitra cheap Discount Generic Dutasteride Real
#10
Posted 28/10/2017, 21:09
Levitra Tariffe In Farmacia Where Can Find Cabergoline 0 25 Priligy Rezeptfrei Kaufen viagra online Pharmacy Stores In Canada Cheap Brand Cialis Online Cialis Acquistp
Keflex Milk Where To Order Pyridium Geridium No Rx Lilly Cialis 10mg Et 20mg buy viagra online Nemazole Without Prescription
Viagra Livraison En 24h Buy 5mg Cialis Online cialis Sertralina De 50 Mg Where Can I Buy Cephalexin Food
#11
Posted 14/11/2017, 12:36
Acquistare Kamagra Harbour generic levitra Amoxicillin 500 Mg For Dogs Cephalexin Kill Coccidia Cytotec Posologie
Discount Nexium Coupons buy viagra Viagra Pour Homme En Pharmacie Amoxil Clavula Side Effects Precio Cialis Tabletas
Cialis 20mg 12 St Preisvergleich Amoxil 20mg Pas Cher viagra Iv Zithromax
0 user(s) are reading this topic
0 membro(s), 0 visitante(s) e 0 membros anônimo(s)